Rewrite url vs Controller |
[eluser]osci[/eluser]
You define only route there and then you can remap in your controller User Guide - Remap for example Code: public function _remap($method, $params = array()) but you should probably make page1, page2, page3 one function ie page since the serve the same purpose (display a title and a content) and the you would have Code: return call_user_func_array(array($this, 'page'), $params); btw the title should be translated to safe url (no spaces or disallowed characters), maybe saving it at db while updating record title so you can query against that. |
Messages In This Thread |
Rewrite url vs Controller - by El Forum - 05-27-2011, 03:36 PM
Rewrite url vs Controller - by El Forum - 05-27-2011, 04:56 PM
Rewrite url vs Controller - by El Forum - 05-28-2011, 07:34 AM
Rewrite url vs Controller - by El Forum - 05-28-2011, 07:39 AM
Rewrite url vs Controller - by El Forum - 05-28-2011, 04:10 PM
Rewrite url vs Controller - by El Forum - 05-29-2011, 02:45 AM
|