Skip to content

magento-1.9

Auto Added by WPeMatico

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

Is it possible to get a collection containing the attributes of all entities (customers, products, etc)?

I’m trying to get a collection from the table eav/attribute (where product’s attributes are present along with customer’s, category’s, etc). I already tried to retrieve it like a normal model collection: $entitiesAttributes = Mage::getModel(‘eav/attribute’)->getCollection(); But I get the following error:… Read More »Is it possible to get a collection containing the attributes of all entities (customers, products, etc)?