Thank for answer, but redirect it's not fine, I think that...
But when I use GET method, i get url like this: /products/search?
field_name=keyword,
This not the same like: /products/search/keyword


On Aug 20, 9:36 pm, majna <[email protected]> wrote:
> You can use redirection:
>
> public function search($keyword=null){
>    if (isset($this->params['form']['search'] && !empty($this->params
> ['form']['search'])){
>        $this->redirect('/products/search/'. $this->params['form']
> ['search']);
>     }
>
> }
>
> or use http get:http://book.cakephp.org/view/184/options-type
>
> On Aug 20, 3:47 pm, kicaj <[email protected]> wrote:
>
> > How add to url search keyword?
> > I want like this url: /products/search/keyword from simple form with
> > one text input field?
>
> > Sorry, maybe it's stupid question...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to