For Example:If i choose Category Cars & Bikes > Motorcycles Mean it show field Kms Driven,Brand Name etc related to bike catgory suppose i choose Apartment category mean it show No. of Rooms,Area Sq Ft related to apartment wise.
if you cant understand my english,plz ask me frankely sry for that.
I was caught with a requirement same as you told have category, subcat and type in parent child relation to manipulate form fields to display user.
What I did is, loaded the full form with all the fields and than on change event of subcat called a JQuery that manipulate the form and show only the related fields to user its easy to manage in this way as on submit Yii leave the blank fields while adding or updating a model. for quick you may create an array that reflect the fields to show in catrgroies array(‘alpha’=>array(1.2), ‘beta’=>‘2,3’) and loop through the array in the js to hide or show fields.
or you can load the form with renderPartial() using ajax on the page.
if you need some code to more elaborate what I said let me know.
Analysis that article eavactiverecord but i dont know what is the set rules using in Property "EavAttribute.setRules" is not defined Set rules column cant identify in EavAttribute table,I cant understand what is the Eavset and EavAttribute plz explain me