Hi everyone…
I am trying to generate a report… i am trying to use EExcelBehavior extension available in Yii website…
but whenever i run it shows :
Fatal error: Class ‘CException’ not found in C:\wamp\www\yii\framework\YiiBase.php on line 318
I have alredy put the extensions in my project:
/protected/extensions/phpexcel/Classes/PHPExcel.php and
/protected/extensions/eexcelview/EExcelView.php and
/protected/extensions/eexcelview/EExcelBehavior.php
i have created a test controller:
the code is:
<?php
Class TestController extends Controller
{
public function behaviors()
{
return array(
'eexcelview'=>array(
'class'=>'ext.eexcelview.EExcelBehavior',
),
);
}
public function actionTest()
{
// Load data (scoped)
$model = Course::model()->findAll();
// Export it
$this->toExcel($model);
$this->render('index');
}
}
?>
now when i run:
http://localhost/nielitwebportal/index.php?r=Test/test
It shows
Fatal error: Class ‘CException’ not found in C:\wamp\www\yii\framework\YiiBase.php on line 318
i have searched and tried:
Fatal error: Class ‘CException’ not found in … YiiBase.php
but i could not solve it…
Someone please Help…