Conflict between Codeigniter AUtoload and Flourish Autoload functions

Zedindips

New Member
I am developing a web application, using the Codeigniter ( http://codeigniter.com/ ) framework plus the Flourish library (unframework) ( http://flourishlib.com/ ).I simply dropped the flourish folder into my application, then I created a flourish initialization and config files as instructed (these create the Flourish autoload).This is my folder structure:---auxcode\
--------init.php
--------config.php
--------flourish\
---system\
---application\
---public_html\The init file ONLY includes the config file, and the config file contents shown below:\[code\]function __autoload($class_name){{ // Customize this to your root Flourish directory $flourish_root = $_SERVER['DOCUMENT_ROOT'] . '/../auxcode/flourish/';$file = $flourish_root . $class_name . '.php';if (file_exists($file)) { include $file; return;}throw new Exception('The class ' . $class_name . ' could not be loaded');\[/code\]}In public_html, the index file has been prepended with this:\[code\]<?phpinclude_once($_SERVER['DOCUMENT_ROOT'] . '/../inc/init.php');\[/code\]Now, the respective autoload functions (as each has its own) are conflicting. The application only works when I comment out the autoload functions (and their dependents) of either framework.Please how can I merge the autoload functions such that I can access both CI and flourish the same way?Or if there is a better method to use both systems in one application? Pray, tell.Thanks.
 
Back
Top