Hey Tomasz,

the problem is not that symfony doesn't find the files.. The problem
is that the Excel library does not rely on the autoloader, and it
contains explicit require statements for required files. That's why
you have to set the path... I have the same issue, but I don't find it
much of a hassle really. Also, I put the library into /lib/vendors/
PHPExcel, but same difference..

Hope this helps.
Daniel


On May 8, 6:11 am, 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-Config...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to