Please anybody tell me the meaning of this line.
$cats = Mage::getModel('catalog/category')->load(2)->getChildren();
Thanks
Printable View
Please anybody tell me the meaning of this line.
$cats = Mage::getModel('catalog/category')->load(2)->getChildren();
Thanks
You code get all of children categories of a category what have id = 2
Hello bab ,
Yes the David is right , this code will get list of all subcategories of a category whose id = 2 .
For more tips and tutorial about magento visit : http://www.ilovemage.com/learn-magento-programming-customization-extension-development.html
Thanks
iLoveMage