Re: 1.2 Routing question..

2007-11-30 Thread chad
Thanks..getting warmer. however why does it put it as a named param in url? if I do: Router::connectNamed(array('project_name')); Router::connect('/projects/:project_name/:action/*', array('controller' => 'projects'), array('project_name' => '[-_a-zA-Z] +')); in view: echo $html->url(array('pro

Re: 1.2 Routing question..

2007-11-30 Thread Aaron Shafovaloff
Router::connectNamed(array('project_name')); Router::connect('/project/:project_name/*'); That's a start On Nov 30, 1:27 pm, chad <[EMAIL PROTECTED]> wrote: > How could I achieve routing like so: /project/{project_name}/{action}/ > * without any hacks in the controller? I have it working with s

1.2 Routing question..

2007-11-30 Thread chad
How could I achieve routing like so: /project/{project_name}/{action}/ * without any hacks in the controller? I have it working with some hacks in the controller but would rather make it more dynamic in the future and figured Router might help with that. Thanks --~--~-~--~~---