Skip to content

magento man

Help please , Well configured, but i can’t get Model in Magento 1.9.4.5

app/code/local/Info/news/Bock/Adminhtml/news/Grid.php <?php class Info_News_Block_Adminhtml_News_Grid extends Mage_Adminhtml_Block_Widget_Grid{ public function __construct(){ parent::__construct(); $this->setId(‘newsGridView’); $this->setDefaultSort(‘news_id’); $this->setDefaultDir(‘DESC’); $this->setSaveParametersInSession(true); } protected function _prepareCollection(){ //$collection=new Varien_Data_Collection(); $collection = Mage::getModel(‘news/news’)->getCollection(); $this->setCollection($collection); return parent::_prepareCollection(); } protected function _prepareColumns(){ $this->addColumn(“news_id”,array( “header”=>Mage::helper(“news”)->__(“ID”), “type”=>”number”, “index”=>”news_id” )); $this->addColumn(“news_title”,array( “header”=>Mage::helper(“news”)->__(“Title”), “type”=>”text”, “index”=>”news_title” ));… Read More »Help please , Well configured, but i can’t get Model in Magento 1.9.4.5