Hi,
can someone help me,
i want to change this url
www.example.com/posts/view/param1/param2
(posts -> controller, param1 and param2 is my parameter)
into
www.eample.com/param1/param2
i made this into my router.php
Router::connect('/', array('controller' => 'pages', 'action' =>
'display', 'home'));
Router::connect('/:param1/:param2', array('controller' => 'posts',
'action' => 'view'));
But I dont know how to pass the param1 and param2 into my
controller ...
I type this
Router::connect('/:param1/:param2', array('controller' => 'posts',
'action' => 'view',':param1',':param2')); but it doesnt work ... :(
need your help .... arigato ! ...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---