Hello all ! :)
I have create a controller with pagination. All are working perfect
except of the paginator links.
What I like to do is to pass thru the url variables to my action. The
question is how ? ? ?
I already have write that into my View
<?php $paginator->options(array('url'=>array_merge(array
('language'=>Configure::read('Config.language')),$this-
>passedArgs))); ?>
and into routes
Router::connect('/:language/:controller/:action');
The above code is returning links like this
/eng/Controllername/Actionname/page:pageNumber/sort:sortField/
sort:sortDirection
Now if I like to pass another variable like
Router::connect('/:language/:controller/:action/:id');
how can I get a url like this
/eng/Controllername/Actionname/152/page:pageNumber/sort:sortField/
sort:sortDirection
What I have try is that
<?php $paginator->options(array('url'=>array_merge(array
('language'=>Configure::read('Config.language'),'id'=>$this->params
['id']),$this->passedArgs)));
?>
but I'm getting url like that
/Controllername/Actionname/152/page:pageNumber/language:eng/
sort:sortField/direction:sortDirection
How to fix that ? ? ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---