CodeIgniter Forums
Loading libraries without front controler - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Loading libraries without front controler (/showthread.php?tid=4179)



Loading libraries without front controler - El Forum - 11-11-2007

[eluser]bendog[/eluser]
Hi,

We've just started using codeigniter for some projects and it's a very cool development framework, fast, easy, nice.

We have however some cases where we would like to stir slightly away from the normal CI execution flow. In particular we're implementing a few side features using flash, and we're hoping to use SWX for that instance.

Is it possible at all to have access to the CI libraries (in particular DB functionalities) without going through the application front controler?

Basically we would like to have access to the CI functionalities from the SWX php services.

Not quite sure how this can be achieved, has anyone been in that situation and could shed some light on it?

Cheers
Ben


Loading libraries without front controler - El Forum - 11-11-2007

[eluser]wiredesignz[/eluser]
Its been done for CakPHP (sic), although they still use controllers.
http://blog.aboutme.be/cakeswxphp/


I'm sure it's easily adapted to CI.


Loading libraries without front controler - El Forum - 11-11-2007

[eluser]bendog[/eluser]
Hi,

Thanks for the quick reply. I did notice that adaptation before but I was hoping I wouldn't have learn Cake as well and write my own adaptation..

maybe someone's done it for CI already?

Ben


Loading libraries without front controler - El Forum - 11-18-2007

[eluser]starbbs[/eluser]
I also would like to see that the db can be loaded at first run