public function getWidgetPager(array $options)
    {
        $options += array(
            'key' => 'p',
            'page' => 1,
            'template' => 'common/pager',
            'query' => $this->getQuery(null, array(), 'array')
        );

        if (isset($options['query'][$options['key']])) {
            $options['page'] = (int) $options['query'][$options['key']];
        }

        $options['query'][$options['key']] = '%num';

        $data = array(
            'options' => $options,
            'pager' => $this->pager->build($options)->get()
        );

        return $this->render($options['template'], $data);
    }
public function getWidgetPager(array $options)
    {
        $options += array(
            'key' => 'p',
            'page' => 1,
            'template' => 'common/pager',
            'query' => $this->getQuery(null, array(), 'array')
        );

        if (isset($options['query'][$options['key']])) {
            $options['page'] = (int) $options['query'][$options['key']];
        }

        $options['query'][$options['key']] = '%num';

        $data = array(
            'options' => $options,
            'pager' => $this->pager->build($options)->get()
        );

        return $this->render($options['template'], $data);
    }
public function getWidgetPager ( array $ options ) { $ options += array ( 'key' => 'p' , 'page' => 1 , 'template' => 'common/pager' , 'query' => $ this -> getQuery ( null , array ( ) , 'array' ) ) ; if ( isset ( $ options [ 'query' ] [ $ options [ 'key' ] ] ) ) { $ options [ 'page' ] = ( int ) $ options [ 'query' ] [ $ options [ 'key' ] ] ; } $ options [ 'query' ] [ $ options [ 'key' ] ] = '%num' ; $ data = array ( 'options' => $ options , 'pager' => $ this -> pager -> build ( $ options ) -> get ( ) ) ; return $ this -> render ( $ options [ 'template' ] , $ data ) ; }
Returns the rendered pager
@param array $options
@return string
Returns the rendered pager