Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PHPExcel and Silverstripe autoload


Go to End


3 Posts   2345 Views

Avatar
Simkim

Community Member, 9 Posts

10 September 2010 at 8:30am

Hi everyone,

We are trying to develop an excel export for our ModelAdmin application, and we are trying to use PHPExcel. The problem is that when we do an include of the library, the autoloader of PHPExcel has conflicts with the autoloader of Silverstripe.

Has anyone a solution for this problem (other than include manually every class in PHPExcel)?

Thank you very much.

Regards,

Mercedes

Avatar
Devlin

Community Member, 344 Posts

11 September 2010 at 2:49am

Edited: 11/09/2010 3:05am

Dunno what the autoloader of PHPExcel does, but you can create a empty file with the name "_manifest_exclude" in the PHPExcel folder to prevent the autoloading from Silverstripe. I did this for mPDF and pChart and it works like a charm for me.

Avatar
jhirm

Community Member, 21 Posts

8 September 2011 at 10:01am

Simkin, did you ever find a solution to this? I'd be curious to know... I'm running into some issues with autoloading conflicts as well.