Hello everyone, 

I have a strange problem with routes and html helper.
I have the following routes:

Router::connect('/view-category/:category-url/page-:page/',
 array('controller' => 'frontend_pages', 'action' => 'view_category'),
 array(
       'pass' => array('category-url'),
       'category-url' => '[\w-]+',
       'page' => '[0-9]+'
 ));
Router::connect('/view-category/:category-url/',
 array('controller' => 'frontend_pages', 'action' => 'view_category'),
 array(
       'pass' => array('category-url'),
       'category-url' => '[\w-]+'
));

Now, if i acces any of the routes in the browser it works perfectly, but
if I do:
<?php echo $html->link('Next', 
  array('controller' => 'frontend_pages',
        'action' => 'view_category',
        'category-url' => $category['Category']['url'],
        'page' => $nextPage)); ?>
It doesn't output the link to the first route as it should.
Why ?

Thx for help

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to