public function _remap()
    {
        $method = $this->uri->rsegment(3) ? $this->uri->rsegment(3) : 'index';

        if (method_exists($this, $method) && substr($method, 0, 1) != '_' && $this->input->get('id')) {

            //  Permalink
            $this->single($this->input->get('id'));

        } elseif (method_exists($this, $method) && substr($method, 0, 1) != '_') {

            //  Method exists, execute it
            $this->{$method}();

        } elseif (is_numeric($method)) {

            //  Paginating the main blog page
            $this->index();

        } else {

            //  Doesn't exist, consider rsegment(3) a slug
            $this->single();
        }
    }
public function _remap()
    {
        $method = $this->uri->rsegment(3) ? $this->uri->rsegment(3) : 'index';

        if (method_exists($this, $method) && substr($method, 0, 1) != '_' && $this->input->get('id')) {

            //  Permalink
            $this->single($this->input->get('id'));

        } elseif (method_exists($this, $method) && substr($method, 0, 1) != '_') {

            //  Method exists, execute it
            $this->{$method}();

        } elseif (is_numeric($method)) {

            //  Paginating the main blog page
            $this->index();

        } else {

            //  Doesn't exist, consider rsegment(3) a slug
            $this->single();
        }
    }
public function _remap ( ) { $ method = $ this -> uri -> rsegment ( 3 ) ? $ this -> uri -> rsegment ( 3 ) : 'index' ; if ( method_exists ( $ this , $ method ) && substr ( $ method , 0 , 1 ) != '_' && $ this -> input -> get ( 'id' ) ) { //  Permalink $ this -> single ( $ this -> input -> get ( 'id' ) ) ; } elseif ( method_exists ( $ this , $ method ) && substr ( $ method , 0 , 1 ) != '_' ) { //  Method exists, execute it $ this -> { $ method } ( ) ; } elseif ( is_numeric ( $ method ) ) { //  Paginating the main blog page $ this -> index ( ) ; } else { //  Doesn't exist, consider rsegment(3) a slug $ this -> single ( ) ; } }
Routes the URL
@return void
Routes the URL