Cant get multi depth array value using CHtml::value()

Hi guys,

Am trying to get the value of a model in a form using CHtml::value and seem to be having some issues when it has more than one level of depth.

The fields name in the form is


MilestoneTodo[1][1][date_completed]

and I want to get the value of it.

Currently I have:


echo CHtml::value($todo, '[1][1]date_completed')

but it returns the error:


Property "MilestoneTodo.[1][1]date_completed" is not defined. 

Any ideas? Thanks!

how interesting


echo CHtml::value($todo, '[1][1]date_completed')

i think it doesn’t give error if


$todo

is array and


$todo[1][1]

is object of


MilestoneTodo 

class