/ Published in: PHP
Expand |
Embed | Plain Text
private function getCategories() { $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ->addIsActiveFilter(); foreach ($categories as $c) { $all[$c->getId()] = $c->getName(); } return $all; }
You need to login to post a comment.
