Wednesday, January 27, 2010

How to Pass all URL Arguments to Paginator Functions

Use the following statement in view file for respective controllers/action:

$paginator->options(array('url' => $this->passedArgs));

This will retrieve all passed url arguments.

To specify which params to pass, use:

$paginator->options(array('url' =>  array("0", "1")));

Simple.

No comments: