I am having some trouble with routing. Using
Router::connect('/it-studies/:slug',
array('language'=>'eng','controller' => 'studies',
'action' =>
'view'),
array('slug' => '[-_A-Za-z0-9]+')
);
works fine at least some of the time. The problem arises with
pagination. At
http://domain.de/eng/studies/index/page:1
the link built using the html helper - $html->link($study['Study']
['headline'.$lan_suffix],
array('language'=>'deu','controller'=>'studies','action' => 'view',
'slug' => $study['Study']['slug']));
creates a link to http://domain.de/it-studies/it-study which is great,
but once I move onto
http://domain.de/eng/studies/index/page:2 the slug part is not being
displayed.
I have read numerous suggesting $paginator->options(array('url' =>
$this->passedArgs)); or similar alternatives.
Can anyone offer a solution?
Cheers,
Taff
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 [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