Cakephp 1.2 Paginator and PassedArgs

Problem: when i have a search resultset with pagination, the links next, prev and numbers do not keep the search parameters. Seems to be a common problem.

I searched everywhere on the internet, and at last i found that i should put this
statement in the view:

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

However, i can't make it work, Should i do something on $this->passedArgs in the controller?

Please help


controller code:

function search($category=null) 
        $this->paginate['Cat'] = array( 
        'limit' => 10, 
        'order' => array ('' => 'desc') 

      $conditions = array('Cat.category' => $this->data['Cat'] 
      $this->set( 'data', $this->paginate('Cat', $conditions ) ); 
      $this->render( 'index_ar' ); 



view code:

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

        <?php $i = '0'; $count = '1';?> 
        <?php foreach ($data as $cats):  ?> 
                <?php $class = (is_int($i/2)) ? 'data-grid-row-1' : 'data-grid- 
<?php echo $paginator->sort('ID', 'id'); ?> <?php echo $paginator->sort('Nome', 'name'); ?> <?php echo $paginator->sort('Categoria', 'category'); ?> Foto <?php echo $paginator->sort('Stato', 'status'); ?>
<?php echo $cats['Cat']['id'] ?> <?php echo $cats['Cat']['name'] ?> <?php echo $cats['Cat']['category'] ?> [cut]