Hi. I am not sure what I am doing wrong but even though I am using
named params $this->params['named'] always shows up as empty.

Routes
Router::connect('/news/:category', array('controller' => 'categories',
'action' => 'view'), array('pass' => array('category')));

View
echo $html->link($link['name'], array('controller' => 'categories',
'action' => 'view', 'category' => $link['alias']));

pr($this->params)
    [category] => europe
    [named] => Array
        (
        )

    [pass] => Array
        (
            [0] => greece
        )

I also tried
Router::connectNamed(array('category'));
Router::connect('/news/:category', array('controller' => 'categories',
'action' => 'view'), array('pass' => array('category')));

and
Router::connectNamed(array('category'));
Router::connect('/news/*, array('controller' => 'categories', 'action'
=> 'view'));

no success....

any 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