Yii Framework Forum: EExcelBehaviour Problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

EExcelBehaviour Problem

#1 User is offline   Aashis 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 18-March 12

Posted 11 May 2012 - 11:58 PM

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/nie...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.....
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users