Welcome Guest, Not a member yet? Register   Sign In
URL structure -> www.my-site.com/menu/submenu
#1

[eluser]borgir[/eluser]
Hi there!
Let's suppose I have a menu and submenu (each one in a separate controller) and I want to make something like:
www.my-site.com/menu/submenu
How can this be accomplished?
And finally, how can I use inheritance in this files?
I've made something like

Code:
class Submenu extends Menu {

}

but it gave me an error.
Thanks a lot!
#2

[eluser]rafabayona[/eluser]
You can make the submenu controller and put it into a folder named menu:
http://ellislab.com/codeigniter/user-gui...subfolders
#3

[eluser]umefarooq[/eluser]
rafabayona is also right you can also do controller name is menu and submenu function in side your controller

Code:
class Menu extends Controller{

  function submenu(){
    
  }

}
#4

[eluser]borgir[/eluser]
Thks a lot guys!




Theme © iAndrew 2016 - Forum software by © MyBB