how to create category subcategory auto load

How to create the category subcategory auto load in yii

Can U please explain this a bit more ?

http://www.yiiframework.com/wiki/165/understanding-autoloading-helper-classes-and-helper-functions/

you are trying load the subcategories for category define a simple one-to-many association and should be able to call


$category->subcategories

http://www.yiiframework.com/doc/guide/1.1/en/database.arr#declaring-relationship