In mypaginator.phtml, you have something like that:

    <a href="<?= $this->url(array('page' => $page)); ?>">
        <?= $page; ?>
    </a>

You  must cznge parameters for $this->url(). For example:
    <a href="<?= $this->url(array_merge(array('page' => $page),
$this->dataForPaginatorUrl)); ?>">
        <?= $page; ?>
    </a>

And in controller:
$this->view->dataForPaginatorUrl = array('searchstr' => $searchstr,
'adlocation' => $adlocation);

or something else.

regards,
pch

On Mon, Feb 16, 2009 at 08:03, Deepak Shrestha <[email protected]> wrote:
>>> 2. put your form values in the url
>
>>but anyway I got the answer already.
>
> Not really
>
> My question is how to modify the view partial script of paginator
> control (mypaginator.phtml) so that it will send the form data along
> with requested page number
>
> Initially my url is
>
> http://myweb/search/?searchstr=&adlocation=Any&submit=Search
>
> but when next is clicked, url get changed to
> http://myweb/search/index/page/2
>
> probably I need the url like this when clicked
> http://myweb/search/index/page/2/?searchstr=&adlocation=Any&submit=Search
>
>  I took a look at the properties available for view partial
> http://framework.zend.com/manual/en/zend.paginator.usage.html#zend.paginator.usage.rendering.properties
> but no clue on how to set this.
>
> Need some hints.
>
> Thanks
>
>
> --
> =======================
> Registered Linux User #460714
> Currently Using Fedora 8, 10
> =======================
>



-- 
Paweł Chuchmała
pawel.chuchmala at gmail dot com

Reply via email to