Welcome Guest, Not a member yet? Register   Sign In
Multiple application folder in CI
#4

I am doing it like this:
application/* for controllers front
application/admin/* for controllers for admin panel

I would also extend the controllers from a "core" controller. eg. Dashboard extends Admin_controller.
Admin_controller here would extend from MY_Controller. This way I can easily build things like access control for different areas of the applications.

So in the application/core folder, I have something like this:
MY_Controller.php
Front_Controller.php (extends MY_Controller)
Admin_Controller.php (extends MY_Controller)
Reply


Messages In This Thread
Multiple application folder in CI - by jayhardia - 12-28-2015, 01:40 AM
RE: Multiple application folder in CI - by lama - 12-29-2015, 07:44 AM
RE: Multiple application folder in CI - by komirad - 01-04-2016, 12:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB