1
나는 magento로 사용자 정의 그리드를 만들어서 저장된 비디오 URL과 그 작업을 표시합니다. 그러나 나는 urlid
이 예를 들어 3
인 레코드 만 표시하려고합니다. 여기 내 _prepareCollection
기능Magento에서 그리드 필터링하기
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
기능이없는 것입니다.
는 너무 @Slayer 감사합니다! –
답변 해 주셔서 감사합니다. 내가 뭔가 링크를 넣을 수있는 방법이 알려 수 있습니다 더 그것을 사용자 정의하고 싶었 수 있습니다 : $ this-> setDefaultFilter (배열 ('real_order_id'=> ('LT를'=> '100000229'))); –