How to use PHPExcel external library with Yii

Comparing #3 with #4

Revision #4 was created by cgsmith cgsmith on Sep 17, 2013, 3:04:00 PM.

updated PHP manual link and added tags

Tags

yii, libraries, PHPExcel, create excel file with phpexcel

Content

[...]
```php
return spl_autoload_register(array('PHPExcel_Autoloader', 'Load'), true, true);
```

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.