Admin Section |
[eluser]NateL[/eluser]
My little app will have pretty much 2 user roles. Admin, and viewer. I have the set up laid out properly, I think..this is sort of a shopping cart (but without the checkout abilities) example.com/available (CI root...this is what the public sees. ) example.com/available/admin (this is where the admin goes to log in) example.com/available/admin/animal/edit/5 (controller/function/id) example.com/available/admin/animal/add example.com/available/admin/animal/delete/5 and so on... so, would I create an admin folder inside my controllers? and then create a NEW controller called 'animal_admin', and then would that file simply extend what is already there? for example: Code: class Animal_admin extends Animal(){ it would be structured like so: /controllers/animal.php /controllers/admin/animal_admin.php Thanks for any tips or advice
[eluser]gullah[/eluser]
I have my admin pages in folders and I just extend the class from the main controller. I don't think there is any point in extending another one of your controllers unless you plan on using functionality from that controller.
[eluser]umefarooq[/eluser]
you can use modular extension for you application , you can have the same structure which you are looking for. here is the link for HMVC modular extension download and installation guide link http://codeigniter.com/wiki/Modular_Extensions_-_HMVC/ |
Welcome Guest, Not a member yet? Register Sign In |