Welcome Guest, Not a member yet? Register   Sign In
I have a site and an admin panel, how to make the admin panel?
#1

[eluser]borisoff[/eluser]
Lets say that my site has url mysite.com. The pages are:

mysite.com/index.php/aboutus
mysite.com/index.php/products
mysite.com/index.php/contacts
mysite.com/index.php/shoppingcart
mysite.com/index.php/admin

My problem is how to construct the admin part. From admin there are other categories such as admin/products(and ~/add, ~/delete, ~/edit, etc.), admin/shopping(and ~/products, ~/billing, etc.), admin/contacts and so on.

How to make this type of structure? My only idea is to make Admin controller and in it to make functions for every additional element of the admin panel and in these function to write very big switch() statements to check if we are in add or delete or edit part of products for example.

Thanks!

PS: I made a search but found nothing.
#2

[eluser]Dam1an[/eluser]
you can make and admin folder in the controllers folder, and then just create the admin controllers as you would normally

You would then call it by doing site.com/admin/controller/function...
#3

[eluser]borisoff[/eluser]
Thank you very much. It is so obvious Smile




Theme © iAndrew 2016 - Forum software by © MyBB