> can anyone help me with this problem???
Yes. Two ideas.
1st, worse - use redirections, so in case your url is /searches/index?
search=linkin redirect it to /searches/index/linkin/. Redirections
always give us some overhead, also this way the search results won't
be seo.
2nd, better - you have to look thru $this->params to fetch all data
you need. ?search=linkin should be in $this->params['url']['search'].
You can fetch that from view or controller. So then, you can recode
SearchesController::index() to something like this:
function index($search = null) {
if (empty($search)) {
$search = @$this->params['url']['search'];
}
...
}
HTH,
Piotr
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment