Welcome Guest, Not a member yet? Register   Sign In
Loading CI Framework without loading page itself
#1

Hi, I'm using CodeIgniter 3.1.x version, and my question would be :
Is it possible to load CI's framework and access to atleast a few models/controllers , without loading page itself?
Basically what I'm doing, is I'm trying to let another PHP application, that is completely OUTSIDE of CI's main folder, to access certain data (such as session).
Is there any real way to atleast try to dip into it without loading the page itself?
I've tried hacking inner core files, making custom third party library, including modified index files - everything I've tried lead to loading main website (including display, templates - everything), while I only need to access certain functions that are in CI.
I've tried this also, but this is way too outdated : https://github.com/bcit-ci/CodeIgniter/wiki/dip-into-CI
Reply
#2

Maybe you can keep the code as 2 separate applications and access the CI code via an API that return JSON data?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

If it's on the same machine, you can access it via the CLI
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB