Welcome Guest, Not a member yet? Register   Sign In
Sharing a feature in more than one controller
#2

You can create multiple base controllers to achieve this. You should create a Products_base controller in the core directory then you should include that file at the beginning of every products related controller and extend that controller instead of CI_Controller or MY_Controller...
If you don't want to include that every time then you should create an spl_autoload method maybe in the front-controller (index.php in the root)!
Reply


Messages In This Thread
RE: Sharing a feature in more than one controller - by orionstar - 08-26-2015, 11:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB