Welcome Guest, Not a member yet? Register   Sign In
creating an admin folder
#1

[eluser]xerosis[/eluser]
My website (like most websites) consists of two parts:
Frontend and Backend.

Now the backend has MANY controllers, models, etc. and the frontend also has its share of the same.

I would like to separate the backend so that it places it and all its files under:

www.mywebsite.com/admin

while the frontend stays www.mywebsite.com

How can I do this? without having a controller called "admin" with EVERYTHING inside that?
#2

[eluser]grisha[/eluser]
Create a folder named admin in your controllers directory.

controllers/welcome.php
controllers/admin/welcome.php

Both front- and back-end of your application should share the models - much more easy to maintain.
#3

[eluser]InsiteFX[/eluser]
application/controllers/admin
application/views/admin

InsiteFX
#4

[eluser]Boris Strahija[/eluser]
I like the approach with modules best, and this is how I use it most of the times. Basically it's very similar to this article:
http://philsturgeon.co.uk/news/2009/07/C...odeIgniter




Theme © iAndrew 2016 - Forum software by © MyBB