CodeIgniter Forums
library and helper without codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: library and helper without codeigniter (/showthread.php?tid=72545)



library and helper without codeigniter - lucavalentino - 01-04-2019

You can use libraries and helper outside outside coeigniter?

Thank you


RE: library and helper without codeigniter - Pertti - 01-04-2019

On CodeIgniter 3, most of the helpers seem to be using some parts of core to get config and then calculate the value. Same seems to be the case for libraries. So by the looks of it, no.

You could probably use your own helpers, if you know you haven't used get_instance(); function to access CI core app.


RE: library and helper without codeigniter - ciadmin - 01-04-2019

There are no licensing restrictions to using CI code outside of a CI app, but much of the code assumes it is running in a CI context and would need to be modified, as Pertti points out.