[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.