i tried this (on 1.2 pre beta)
Router::connect('/*/*', array('controller' =>'posts','action' =>
'view'));
and it work, it will pass the parameters into the post.
> The only problem I see is that it's basically saying that any request
> with two parameters like that will go into your posts/view action...
> which might stuff up all your normal controller actions?
yep that's right, but at the moment I am not going to use many
controller.... just some :)
so i dont bother to write one by one for each controller.
On Nov 2, 1:07 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> Try the second one you had:
> Router::connect('/:param1/:param2', array('controller' =>
> 'posts','action' => 'view'));
>
> and then in your controller action, look at $this->params['param1']
> and $this->params['param2']
>
> The only problem I see is that it's basically saying that any request
> with two parameters like that will go into your posts/view action...
> which might stuff up all your normal controller actions?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---