Hi, I unzipped/untar the sfPhpExcelPlugin-1.0.1 in the myproject/plugins directory.
Then I did symfony cc and it worked for mr. Regards Deepak Bhatia On Fri, May 8, 2009 at 6:41 PM, Tomasz Ignatiuk <[email protected]>wrote: > > Hi > > I use PHPexcel but not by a symfony plugin which mess up somethings > but by putting whole library to myproject/lib. > > So there is: > lib/PHPExcel folder with some other libraries and > lib/PHPExcel.php with main class. > > It should be autoloaded automatically after clearing cache. But it > isn't. Each time I use it (in action or view) I have to extend include > path: > > set_include_path(get_include_path() . PATH_SEPARATOR . '../lib/'); > > Unfortunatelly if I delete this it doesn't work. In main PHPExcel > class files are included like this: > > /** PHPExcel_Cell */ > require_once 'PHPExcel/Cell.php'; > > /** PHPExcel_DocumentProperties */ > require_once 'PHPExcel/DocumentProperties.php'; > > /** PHPExcel_DocumentSecurity */ > require_once 'PHPExcel/DocumentSecurity.php'; > > /** PHPExcel_Worksheet */ > require_once 'PHPExcel/Worksheet.php'; > > /** PHPExcel_Shared_ZipStreamWrapper */ > require_once 'PHPExcel/Shared/ZipStreamWrapper.php'; > > /** PHPExcel_NamedRange */ > require_once 'PHPExcel/NamedRange.php'; > > /** PHPExcel_WorksheetIterator */ > require_once 'PHPExcel/WorksheetIterator.php'; > > The same way with other classes that are in PHPExcel directory. Any > guess how to add it in symfony config? Maybe in autoload.yml, but I > don't knowwhere to put it and how to write rules :( > > http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_extending_the_autoloading_feature > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
