Another problem installing one extension:
I have installed csvout extensions like this:
1- I copy all the ‘csv’ folder under /protected/extensions
2-I add to my /protected/config/main.php file:
'controllerMap'=>array(
'csv'=>array(
'class'=>'application.extensions.csv.CsvController',
'property1'=>'value1',
'property2'=>'value2',
),
),
before the ‘components’=>array(…’ part
3-In the Admin form of my windows i put:
<?php $this->widget(‘application.extensions.csv.csvWidget’, array(
'table' => '.dataGrid',
'csvFile' => ''));
?>
4- when i click to export list to CSV i have:
proprieties "CsvController.property1" not define.
c:\projects\yii\framework\YiiBase.php(191)
00179: {
00180: unset($args[0]);
00181: $class=new ReflectionClass($type);
00182: // Note: ReflectionClass::newInstanceArgs() is available for PHP 5.1.3+
00183: // $object=$class->newInstanceArgs($args);
00184: $object=call_user_func_array(array($class,‘newInstance’),$args);
00185: }
00186: }
00187: else
00188: $object=new $type;
00189:
00190: foreach($config as $key=>$value)
00191: $object->$key=$value;
00192:
00193: return $object;
00194: }
I try to:
In main.php change:
‘controllerMap’=>array(
'csv'=>array(
'class'=>'application.extensions.csv.CsvController',
'property1'=>'value1',
'property2'=>'value2',
),
),
to:
‘controllerMap’=>array(
'csv'=>array(
'class'=>'application.extensions.csv.CsvController',
'table' => '.dataGrid',
'csvFile' => '',
),
),
but i have a similar problem "proprieties "CsvController.table" not define."
Any idea? Some people use csvout?
Thanks