src/Controller.php
public function getControllerName()
    {
        if (empty($this->controller_name)) {
            $controller_class = get_class($this);

            if (($pos = strrpos($controller_class, '\\')) !== false) {
                $this->controller_name = substr($controller_class, $pos + 1);
            } else {
                $this->controller_name = $controller_class;
            }
        }

        return $this->controller_name;
    }
public function getControllerName()
    {
        if (empty($this->controller_name)) {
            $controller_class = get_class($this);

            if (($pos = strrpos($controller_class, '\\')) !== false) {
                $this->controller_name = substr($controller_class, $pos + 1);
            } else {
                $this->controller_name = $controller_class;
            }
        }

        return $this->controller_name;
    }
public function getControllerName ( ) { if ( empty ( $ this -> controller_name ) ) { $ controller_class = get_class ( $ this ) ; if ( ( $ pos = strrpos ( $ controller_class , '\\' ) ) !== false ) { $ this -> controller_name = substr ( $ controller_class , $ pos + 1 ) ; } else { $ this -> controller_name = $ controller_class ; } } return $ this -> controller_name ; }
Return controller name, without namespace.

@return string
Return controller name without namespace .