Hi!
Is there any way to create routes from a database table?
What I mean is this: I have a table that looks like this:
id | link | controller | action |
param
--------------------------------------------------------------------------------------
1 | /somepage | pages | display | p1
2 | /some/complicated/link | pages | display | p2
-------------------------------------------------------------------------------------
where the first row (id 1) translates to:
Router::connect('/somepage', array('controller' => 'pages', 'action'
=> 'display', 'p1'));
and the second row (id 2) translates to:
Router::connect('/some/complicated/link', array('controller' =>
'pages', 'action' => 'display', 'p2'));
and so on. I want this functionality so I can easily edit my links
(for a SEO perspective).
Thanks!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en