CodeIgniter Forums
NOT another how can I call a controller from a controller thread! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: NOT another how can I call a controller from a controller thread! (/thread-19135.html)



NOT another how can I call a controller from a controller thread! - El Forum - 05-28-2009

[eluser]warrennz[/eluser]
Heya guys

My situation

I have a bunch of routes defined to make my Url pretty/simple.
I have a dynamic navigation building library to generate all my navigation (from SQL).

I want to dynamically add/use/write routes.

Does anyone have any suggestions before I delv into CI and destroy it haha?

I would like to be able to store the plain URI's in the menu record (in sql) as you would normally do with URI routing ie /admin/user/something/else/etc and then some way to parse that myself and apply it to..whatever it does there.. to call the controller?

Maybe extending the way CI does it and reading in my menu object etc

Ideas appreciated

Thank you


NOT another how can I call a controller from a controller thread! - El Forum - 05-29-2009

[eluser]TheFuzzy0ne[/eluser]
You can store you're dynamic routes in a serialised array in a file, and you can include it and unserialise it in your routes.php file.