Welcome Guest, Not a member yet? Register   Sign In
Using Codeigniter with Flourish PHP Library: Autoload conflicts
#1

[eluser]Ephyzy[/eluser]
Please I am very new to CodeIgniter (and an OOP novice) but I have to use the Flourish PHP unframework Flourish PHP Unframework with Codeigniter.

Flourish has its own Autoload function that is initialized on each of the pages, so I was advised on stackoverflow: http://stackoverflow.com/questions/38231...-functions to try to create a custom function that will select either of the autoload functions (CI and Flourish, either will return true to the custom function). Then I found out that CI does not use the native autoload function.

The author of FLourish library advised me to use PHP's autoload register
http://us.php.net/manual/en/function.spl...gister.php

Now, please I need to know, how do I target the autoload function in COdeigniter to use it in the SPL autoload register function?

Some sample code will be appreciated. Thanks in advance!
#2

[eluser]Ephyzy[/eluser]
Let me rephrase my question:

Please how to I use PHP's SPL_autoload_register with Codeigniter and another library (which also has its own autoload)? Sad
#3

[eluser]Ephyzy[/eluser]
I got an answer. See it here on the other thread I created:

http://ellislab.com/forums/viewthread/169122/




Theme © iAndrew 2016 - Forum software by © MyBB