1

I have imported PHPExcel into /protected/extensions/phpexcel, followed all the steps. Created an action to call the createExcel action.

But I get this error:

Fatal error: Class 'Controller' not found in F:\xampp\htdocs...\protected\controllers\SiteController.php on line 4

Fatal error: Class 'CListIterator' not found in F:\xampp\htdocs\yii\framework\collections\CList.php on line 90

It was actually generating and working fine the day before. No changes were made to any file the next day. Suddenly this error shows up.

Can I know what may cause the problem?

Marc
  • 3,683
  • 8
  • 34
  • 48
NewbieCoder
  • 676
  • 1
  • 9
  • 32

1 Answers1

0

It's the Autoload's problem. Just follow this link below:

How to use PHPExcel external library with Yii

Just simply disable the autoload.

NewbieCoder
  • 676
  • 1
  • 9
  • 32