I have been trying to communicate between two CodeIgniter projects.
I have 2 projects, say A and B. Whenever a view is called from A and it should hit the controller of project B instead of A.
I want to allow database access to only project B and not A. SO all database quires should be performed my B, and all displays should be done by A
Is there a way to do it.
You need to extend the class
CI_Loaderlike this :If you want to run your code BEFORE the view is loaded, call the line
parent::view($view, $vars, $return);at the end of the function.You will have to load the class inside your controller and then use something like
$this->ClassNameYouWant->ExtendedView();