Hello, guys.
Is there any way to pass variable from model get method to CGridView collumn htmlOptions?
I want to dynamicaly set <td title="some usefull desription"> value. So i made public method in my model:
Order model:
...
public function getCame_from() {
return (isset($this->referer)) ? 'came from: '.$this->referer : 'direct';
}
and in my orders view, in CGridView i’m trying to set
'columns' => array(
array(
'name' => ''
...
'htmlOptions' => array('title' => '$data->came_from')
....
But this don’t work and i have <td title="$data->came_from">