You could look into https://github.com/CakeDC/search#post-redirect-get-concept

"PRG Component
The Prg component implements the PRG pattern so you can use it separately from 
search tasks when you need it.
The component maintains passed and named parameters or query string variables 
that come as POST parameters and transform it to the named during redirect, and 
sets Controller::data back if the GET method was used during component call."


Andras Kende



On Dec 19, 2013, at 6:12 AM, Mukesh Ashtekar <[email protected]> wrote:

> Have You Found solution for this ??? I am also looking for this...
> 
> On Monday, November 1, 2010 8:53:36 AM UTC+5:30, DANNY wrote:
> Hi All: 
> I look the  tutorial that Pagination for custom queries 
> (http://bakery.cakephp.org/articles/shird10/2010/08/29/pagination-for- 
> custom-queries) 
> 
> I can search the data by use URL (example.com/forums/viewtopic/x/y/ 
> page:2) 
> But I want to use Form(method is GET) to generate the url 
> 
> <!-- ------search------ --> 
> <?php echo $this->Form- 
> >create('Order',array('action'=>'index','type'=>'get'));?> 
> <?php echo $this->Form->input('x');  ?> 
> <?php echo $this->Form->input('y');  ?> 
> <?php echo $this->Form->end(__('submit', true));?> 
> <!-- ------search------ --> 
> 
> I press the summit button , I get the url is : 
> example.com/forums/viewtopic?x=AAAAAAA&y=BBBBBB 
> 
> not example.com/forums/viewtopic/x/y/page:2 
> How to create the above Url by Form and method is GET 
> 
> thanks 
> 
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to