Gridcolumns

Hi I am trying to implement http://www.yiiframework.com/extension/gridcolumns/ i have extracted it to my extensions folder and impletmentated it in my admin.php view. here is the code.


	

this->widget('zii.widgets.grid.CGridView', array(

	'id' => 'transactions-grid',

	'dataProvider' => $model->search(),

	'filter' => $model,

	'columns' => array(

....		


                        array(

			'class'=>'ext.TotalColumn',

			'name'=>'Investment_Amount',

			'output'=>'Yii::app()->numberFormatter->formatCurrency($data->Investment_Amount, "€")',

			'type'=>'raw',

			'footer' => true

                                    ),



It is returning €0.00 in the footer of my total Investment Column. Am i missing another step somewhere along the way.

Hope you can help

Ibecake

Any takers.

Ibecake

hey buddy

looks like you missing the value property as it says in the docs

Properties

All of these columns change the use of the "value" property and add the "output" property.

right here >>>

value string A PHP expression that will be evaluated and whose result will be used as the value

<<<<

(not the rendered output) of the cell; the expression can contain the variables $row - the row number (zero-based), $data - the data model for the row; and $this - the column object. (also see CalcColumn) output string A PHP expression that will be evaluated and whose result will be used to render the footer cell. The expression can contain the variables $value - the footer cell value and $this - the column.