I Have a problem with my cakephp url routing . I've found some questions and answers in Stackoverflow, but nothing solved my issue. Please Don't close this question or marked as duplicate . My case is genuine.
Using Cakephp 1.3.11
My router code is below
Router::connect('/search/*', array('controller' => 'searches', 'action' => 'index'));
My URL will look like this
http://192.168.0.110/myproject/search/operational_area:1
But , when I looking forward to second page , it will shaped to below
http://192.168.0.110/myproject/searches/index/page:2/operational_area:1
I don't want the searches/index , but search should be there with params
My paginator options
$paginator->options = array(
'url'=>array(
'controller'=>'searches',
'action'=>'index',
'operational_area'=>$this->params['named']['operational_area']
)
);
I've done all possible things in my code , I followed some snippets from SO, But nothing helped me . The problem still persists. Anybody could came across this issue would be great.
Thanks in advance