Welcome Guest, Not a member yet? Register   Sign In
Subcontrollers?
#1

[eluser]Medikal[/eluser]
I guess my question is if I want to have urls such as site.com/view/tutorial/6/5 that view tutorial 5 in category 6. I understand that a view controller is required, and I can see getting 6/5/ from a tutorial controller, but how a tutorial controller lies beneath a view controller is what confuses me, any guides out there? User guide for controllers didn't seem to cover it.
#2

[eluser]WanWizard[/eluser]
No need for "subcontrollers", in this example, tutorial is a method of the view controller. The URI elements '6' and '5' are passed as arguments to the tutorial() method by the front controller.




Theme © iAndrew 2016 - Forum software by © MyBB