保存されたビデオの URL とその動作を表示するカスタム グリッドを magento で作成しました。urlid
しかし、たとえば がであるレコードのみを表示したい3
。これが私の_prepareCollection
機能です
protected function _prepareCollection()
{
// Get and set the collection for the grid
$collection = Mage::getResourceModel('drecomm_productvideo/video_collection');
//what should i put in here, addFieldtoSelect?
$this->setCollection($collection);
return parent::_prepareCollection();
}
私のグリッドはから拡張され、そのクラスには機能Mage_Adminhtml_Block_Widget_Grid
がありません。addFieldToFilter