Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jerome.celle@gmail.com

  • Rank
  1. Answer found after some reading... In fact widgets are not really homogeneous... For CGridView you must specify the html type like this: array( 'name' => 'version', 'value' => "preg_replace('/($today.+)/','<span style=\'color: red;\'>\$1</span>', \$data['version'])", 'type' => 'html' ) ,
  2. Hello, I am using a CGridView with a CSqlDataProvider. I would like to dynamically change the text displayed in the cells for some columns. For instance: - instead of displaying a name, I would like to display a link - if a certain value is present, display this value in red I mean I want to put HTML in my cells and expect this HTML to be parsed and rendered by the browser. I don't want to change the class of the underlying <tr>, <td>... For so doing I put some expressions in the 'columns' array: 'columns' => array( 'phase',
  • Create New...