问题出现于使用Grid时,解决方案。在使用的Model处添加

public function _construct() {
        parent::_construct();
        $this->_init('employee/employee');
    }

其中init内的数值由下面的函数决定

protected function _prepareCollection()
    {
        $collection = Mage::getModel('employee/employee')->getCollection();
        $this->setCollection($collection);
        return parent::_prepareCollection();
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-06-21
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-10-19
  • 2021-06-30
相关资源
相似解决方案