CodeIgniter Forums

Full Version: Load CI Library in external File
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello @ll,

how can a load the CI Library in a external PHP file?
I have a Flashgame SWF and a PHP File "test.php".
The SWF File load the test.php
I broke all CI funktion in the test.php... DB, Modal, Session etc.
Have any a Idea?

Hey Maeggi07,

First of all... CI isn't an library but a framework.
Second, I don't think it's possible to 'load' CI in a legacy php file, and I can't think of a reason why you should want such a solution.

Why don't you create a controller Test and move the code from your test.php file to your new controller. No external php files are needed!

Hope this helps!