CDetailView Display

I have some attributes which have a nested connection each item (just like dropdown list).

ex: -id_province, province_name

-id_province, id_city, city

I want to display them both in id_number and their description. I had done the first well…






But when i try to add City, I have some error. Could anyone help me? :D


  'name' => 'id_province',

  'value' => $model->province->province_name


province is a relation defined in your $model