Hey Stefan,
great idea. I didn't know about "spl_autoload_register" That seems to
be a good way to allow users to add own directories/classes/libs etc :)
I like it and want it :)
Maybe already in 4.3 ;)
Bye
Mathias
Am 05.03.2010 um 11:26 schrieb Stefan Moises:
Hi List,
I'd like to make a proposal:
OXID defines its own __autoload() function in "core/
oxfunctions.php", which makes it hard to add external libraries
containing their own autoloaders or to implement different
autoloaders for own classes/libs.
A solution would be to rename that function to e.g. "oxidAutoload()"
and to add it to the PHP autoloader stack with
"*spl_autoload_register('**oxidAutoload');*"
So other autoload functions could be added in the same way, too.
What do you think?
Cheers,
Stefan Moises
--
*******************************************
Stefan Moises
Senior Softwareentwickler
shoptimax GmbH
Guntherstraße 45 a
90461 Nürnberg
Amtsgericht Nürnberg HRB 21703
GF Friedrich Schreieck
Tel.: 0911/25566-25
Fax: 0911/25566-29
[email protected]
http://www.shoptimax.de
*******************************************
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general