classes/Pagination.php
public function render($view = null) {
            // Automatically hide pagination whenever it is superfluous
            if ($this->config['auto_hide'] === true AND $this->total_pages <= 1) {
                return '';
            }

            if ($view === null) {
                // Use the view from config
                $view = $this->config['view'];
            }
            $tpl = \Meerkat\Twig\Twig::from_template($view);

            // Pass on the whole Pagination object
            //print '<pre>';
            //print_r(get_object_vars($this));
            //print '</pre>';
            return $tpl
                ->set(get_object_vars($this))
                ->set('page', $this)
                ->render();
        }
public function render($view = null) {
            // Automatically hide pagination whenever it is superfluous
            if ($this->config['auto_hide'] === true AND $this->total_pages <= 1) {
                return '';
            }

            if ($view === null) {
                // Use the view from config
                $view = $this->config['view'];
            }
            $tpl = \Meerkat\Twig\Twig::from_template($view);

            // Pass on the whole Pagination object
            //print '<pre>';
            //print_r(get_object_vars($this));
            //print '</pre>';
            return $tpl
                ->set(get_object_vars($this))
                ->set('page', $this)
                ->render();
        }
public function render ( $ view = null ) { // Automatically hide pagination whenever it is superfluous if ( $ this -> config [ 'auto_hide' ] === true AND $ this -> total_pages <= 1 ) { return '' ; } if ( $ view === null ) { // Use the view from config $ view = $ this -> config [ 'view' ] ; } $ tpl = \ Meerkat \ Twig \ Twig :: from_template ( $ view ) ; // Pass on the whole Pagination object //print '<pre>'; //print_r(get_object_vars($this)); //print '</pre>'; return $ tpl -> set ( get_object_vars ( $ this ) ) -> set ( 'page' , $ this ) -> render ( ) ; }
Renders the pagination links.

@param   mixed   string of the view to use, or a Kohana_View object
@return  string  pagination output (HTML)
Renders the pagination links .