How to use PHPExcel external library with Yii

Comparing #3 with #5

Tags

yii, libraries, PHPExcel, create excel file with phpexcel

Content

Trying to learn and help some other programmers to find their solutions on the [Yii Forum](http://www.yiiframework.com/forum "Yii Forum") (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: [PHPExcel](http://phpexcel.codeplex.com/ "PHPExcel"). And what is PHPExcel?

<h4>PHPExcel - OpenXML - Create Excel2007 documents in PHP - Spreadsheet engine</h4>
[...]
```

See the documentation of [spl_autoload_register](http://
us.php.net/manual/en/function.spl-autoload-register.php) for a description of these parameters. <h2>Final Words</h2> This post is using PHPExcel external library as an example, but this procedure should be taken into account when we encounter a problem like this. Whenever you find a library that you wish to include in your Yii application, check out its autoloading functions first.