Welcome Guest, Not a member yet? Register   Sign In
Dynamic Controller Names
#1

[eluser]PHP Creative[/eluser]
Hi there

I’m not sure how to explain this. Below is an example of the URL I am using. As you can see there are 2 controller names, ‘restaurants’ and ‘info’. However the URL is not ideal because of the ‘info’ controller.

http://www.example.com/restaurants/info/Barrys-grill

The ideal URL is shown below:

http://www.example.com/restaurants/Barrys-grill

As you can see ‘Barrys-grill’ is a controller name but because I could have hundreds of names writing individual controllers in the code isn’t ideal. Is it possible to write dynamic controller names?

I have reading the User Guide and so far I haven't had any luck regarding this. Could someone point me in right direction.


Messages In This Thread
Dynamic Controller Names - by El Forum - 05-17-2009, 07:29 PM
Dynamic Controller Names - by El Forum - 05-17-2009, 07:43 PM
Dynamic Controller Names - by El Forum - 05-17-2009, 08:17 PM
Dynamic Controller Names - by El Forum - 05-17-2009, 10:15 PM
Dynamic Controller Names - by El Forum - 05-18-2009, 02:37 AM
Dynamic Controller Names - by El Forum - 05-22-2009, 10:15 AM
Dynamic Controller Names - by El Forum - 05-23-2009, 12:50 PM
Dynamic Controller Names - by El Forum - 05-23-2009, 01:00 PM
Dynamic Controller Names - by El Forum - 05-24-2009, 05:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB