public function getRouteInfo()
    {
        if ($this->isSingle()) {
            if (isset($this->containers['route_info']) && ($controller = $this->containers['route_info']->get('controller')) 
                && ($action = $this->containers['route_info']->get('action'))
            ) {
                return ['controller' => $controller, 'action' => $action];
            }
        }
        return ['controller' => 'index', 'action' => 'index'];
    }
public function getRouteInfo()
    {
        if ($this->isSingle()) {
            if (isset($this->containers['route_info']) && ($controller = $this->containers['route_info']->get('controller')) 
                && ($action = $this->containers['route_info']->get('action'))
            ) {
                return ['controller' => $controller, 'action' => $action];
            }
        }
        return ['controller' => 'index', 'action' => 'index'];
    }
public function getRouteInfo ( ) { if ( $ this -> isSingle ( ) ) { if ( isset ( $ this -> containers [ 'route_info' ] ) && ( $ controller = $ this -> containers [ 'route_info' ] -> get ( 'controller' ) ) && ( $ action = $ this -> containers [ 'route_info' ] -> get ( 'action' ) ) ) { return [ 'controller' => $ controller , 'action' => $ action ] ; } } return [ 'controller' => 'index' , 'action' => 'index' ] ; }
Get Route Info

@return array
Get Route Info