On Apr 10, 2:03 pm, kaushik <kaushikwo...@gmail.com> wrote:
> I have a search form for Blog with pagination. The form is like below.
>
> <form name="BlogSearchForm" onSubmit="javascript:return check();"
> id="BlogSearchForm" method="post" action="/blogs/search">
> <fieldset style="display:none;">
> <input type="hidden" name="_method" value="POST" />
> </fieldset>
> <input type="text" name="data[Blog][keywords]" value="" class="input"
> id="keywords" />
> <input type="text" name="data[Blog][category]" value="" class="input"
> id="category" />
> <input name="button" type="submit" class="button" id="button"
> value="Search" />
> </form>
>
> I want to set so that the url after hitting search button, it should
> come with all the params. I mean it should: "http://
> videon.smallbizmavericks.com/blogs/search/keywords:test1/
> category:test2", so that in pagination I can use the in pagination
> link like below:
>
> $paginator->options(array('url' => $this->passedArgs));
>
> If it is not possible, how to pass this arguments to paginator for
> first time?

it's simpler to just handle the post rather than p about with js to do
it.

function index () {
 if ($this->data) {
 return $this->redirect($this->data['Blog']);
}
$this->set('posts', $this->paginate($this->params['named']));
}

styley.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to