CodeIgniter Forums
CodeIgniter as a library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: CodeIgniter as a library (/showthread.php?tid=61704)



CodeIgniter as a library - codinghamster - 05-07-2015

Hi.

Have you ever been in a situation where you need to integrate some 3rd party PHP application with it's own implementation of sessions, security etc with a CodeIgniter project?

Well, sounds strange but that did happen to me several times. To manage those situations I created simple class and called it CoreIgniter.

You can find the project here: https://github.com/codinghamster/coreigniter.

The idea behind the CoreIgniter is to create a generic CodeIgniter superobject with correct configuration without any route processing and handling. Just to get access to CodeIgniter resources like Sessions and things like that.

It has worked for me well on several 2.* versions of CI but is not tested with recent versions.

The project is a bit outdated but some of you still might find it useful.


RE: CodeIgniter as a library - ivantcholakov - 05-07-2015

An interesting idea... Thank you for sharing it.


RE: CodeIgniter as a library - cgarciagl - 05-07-2015

sounds great... i'll take a look, thankyou!