The code for this plugin's examples is a bit strange. It uses the sfConfig
class to read Symfony config variables but doesn't initialize nor include any Symfony code (hence the error).
In fact when you look at the code of this plugin you'll see that all it does is set some configuration when instantiating PHPExcel
object. I would skip the plugin altogether and just use the PHPExcel
directly in your project (you can either include it in the controller where you use it or in the ProjectConfiguration.class.php
to make it available for the whole project (not recommended though).