Friday, July 19, 2013

For reverse routing in paginator

I hate the paginator in cakephp 2.3.5.
(I have used the search plugin strictly.)
Currently, the url link html-> prev () is generated when you send in the page view side
xxxxx.ne.jp / Fronts / search / state_id: xx / city_id: yy
If, after being routed reversed
xxxxx.ne.jp / pc / search / page: 2
It becomes.

Router setting
Router::connect('/pc/search/*', array('controller'=>'Fronts', 'action' => 'search', 'area_id'=> 28)));

view code.
$this->Paginator->options(array('url'=>array('controller'=>'Fronts', 'action'=>'search', 'area_id'=>28));

I would like to take over the named parameters even when you reverse routing.

Best regards.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: