Cool, thanks Jaime, will give it a bash and report back success/
failure.
Dan
On Sep 2, 1:50 am, Jaime <[EMAIL PROTECTED]> wrote:
> Try named parameters. Something like:
>
> Router::connect('/webstats/:vhost/:type', array('controller' =>
> 'yourcontroller', 'action' => 'youraction'), array('type' => 'foo|bar|
> bla'));
>
> The last array is optional, just in case you want to restrict your
> chart type to "foo", "bar" and "bla".
>
> Then you can access the slugs within your controller via $this-
>
> >params['type'] for instance.
>
> For dates is pretty similar (check the online book, I remember a very
> similar example)
>
> HTH
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---