CakePHP过滤器分页字段

In CakePHP v. 2.5.2, is there a simpler way to do this check?

if(!empty($this->passedArgs['somemodel.someatribute'])) {
    $paginate['conditions']['somemodel.someatribute'] = base64_decode($this->passedArgs['somemodel.someatribute']);
}

When I have many fields, the list will be very long and I would like to avoid that.

Can't you just use a standard foreach loop?

foreach($this->passedArgs as $key => $value) {
    $paginate['conditions'][$key] = base64_decode($value);
}

Alternatively try looking into the $this->request->params['pass'] array, which is similar to $this->passedArgs.

For further details, check out the CakePHP docs on routing.