I am new in Yii framework and have a question.
I have a table named ‘node’ which has these fields:
id
name
parent_id
parent_id contain id of parent of a node which exist in this table too.
I have created model,controller and view files using Gii interface. In view files id of parent is shown but I want to display parent name instead of its id .
I guess maybe I need to add a public property in model class of this table, so I would be access to it via ->parent_name in view files.
How can I do it ? what files should I change ?