Welcome Guest, Not a member yet? Register   Sign In
Working with 2 applications
#6

Instead of giving yourself a hard time,why not just do it simple as this?
One single app with multiple areas.
application/controllers/backend -> all backend controllers go in here.
application/views/backend -> all backend views go in here.
application/controllers -> all frontend controllers go in here.
application/views/frontend -> all frontend views gn in here.
Then in your application/core/MY_Controller.php , create two classes extending to CI_Controller: frontend(disable debug and anything you don't want users to see), backend(enable debug). Then back to your controllers: in application/controllers/{file}.php -> class {file} extends frontend{} , application/controllers/backend/{file}.php -> class {file} extends backend{}.
Now you get http://localhost/eshop and http://localhost/eshop/backend working.
Be Simple Angel
Reply


Messages In This Thread
Working with 2 applications - by lama - 12-27-2015, 05:05 AM
RE: Working with 2 applications - by wolfgang1983 - 12-28-2015, 11:32 PM
RE: Working with 2 applications - by lama - 01-06-2016, 01:40 PM
RE: Working with 2 applications - by wolfgang1983 - 01-06-2016, 02:13 PM
RE: Working with 2 applications - by lama - 01-14-2016, 02:40 PM
RE: Working with 2 applications - by waptik - 01-18-2016, 09:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB