It looks a little bit dirty, but it works, it looks like this

function search() {
                if( !empty($this->params['named']) ){
                        // finding the values and passing them to view is done 
here
                }
                else if( !empty($this->data) ){ // this is the post data, but 
we are
redirecting it to search
                        $url = $model.'/search/key:value';
                        $this->redirect($url, null, true);
                }
}

On Aug 21, 4:09 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Check out this 
> thread:http://groups.google.com/group/cake-php/browse_thread/thread/d1c13c93...
>
> A few posts down there is a suggestion to POST the search to a "proxy"
> function which assembles a clean url and redirects to the "real"
> function. I am not aware of any cleaner way of doing it works fine in
> the cases I have used this technique.
>
> /Martin
>
> On Aug 21, 2:10 pm, bitkidoku <[EMAIL PROTECTED]> wrote:
>
> > Hello everyone,
>
> > I am implementing a search form. But I want to make search results
> > linkable like: "http://somehost/products/search/keyword"; (keyword is
> > the word that is being searched).
>
> > What is the best practise to achieve this? And what if the user could
> > search defining many parameters like title, content, ingredients etc.?
>
> > I googled this but I couldn't find any meaningful results.
>
> > Thank you very much for your answers.
--~--~---------~--~----~------------~-------~--~----~
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