Is this a bug?

Or am I missing something somewhere else?

I am trying to use the PHPExcel class in my project. My project lives in ~/Sites/TheProject. My Yii framework lives in ~/Sites/yii.

When I try to execute the page that is using the PHPExcel Class, I get this error:

[indent]Fatal error: Class ‘CException’ not found in /Users/Steve/Sites/yii/framework/base/CComponent.php on line 131[/indent]

Yii uses CException all over the place in its own code so I think this error is trying to tell me something else. Any ideas?


Read this article, may be it will help you: How to use PHPExcel external library with Yii

I found that article and I am doing exactly that - hence the beginning of my error messages.

Now I am getting a different error. The code on the page you referred me to has this:


$phpExcelPath = Yii::getPathOfAlias('ext.phpexcel.Classes');


But the current version of the PHPExcel class has no ‘Classes’ sub-folder. Now what?

Never mind. I removed the ‘.Classes’ portion of the getPathOfAlias and now its working.

Thanks for your time and help!