Welcome Guest, Not a member yet? Register   Sign In
Dynamic routing names
#7

Thank you very much guys, I spent the most of yesterday evening exploring routing.

I must admit the way I was thinking about it was backwards.

I thought you set a rule to dynamically remap your controller to another url.

For example if you had my_controller/my_method/id in a view file I thought you could dynamically change the url displayed in the browser to blog/1.

Once I realised it works in the opposite way, i.e if you have blog/1 in your view file which then routes to the controller. I got it to work.

But then I thought, wow, this is really rather useless lol. To provide any real functionality, I would have to dynamically store my routes in a database everytime I create a new page or section. But yeah, I'm going to put this on the back burner for the time being and carefully plan how all my CMS pages will look.

Thread closed unless anyone has something to add.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Reply


Messages In This Thread
Dynamic routing names - by ignitedcms - 10-21-2015, 03:14 PM
RE: Dynamic routing names - by AidanW - 10-21-2015, 03:28 PM
RE: Dynamic routing names - by PaulD - 10-21-2015, 05:56 PM
RE: Dynamic routing names - by ignitedcms - 10-21-2015, 11:12 PM
RE: Dynamic routing names - by AidanW - 10-22-2015, 12:06 AM
RE: Dynamic routing names - by John_Betong - 10-22-2015, 02:13 AM
RE: Dynamic routing names - by ignitedcms - 10-23-2015, 10:57 AM
RE: Dynamic routing names - by puneetkumar - 07-13-2018, 12:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB