Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:3842009
Created Oct 5, 2012
Every _prepareCollection Grid method in a Magento 1.7.0.2 CE instal
View gist:3842009
File: Adminhtml/Block/Api/Grid/Role.php
function _prepareCollection()
{
$collection = Mage::getModel("api/roles")->getCollection();
$this->setCollection($collection);
return parent::_prepareCollection();
}
+--------------------------------------------------+
File: Adminhtml/Block/Api/Role/Grid/User.php