src/Controller.php
protected function getViewPath(): string
    {
        $result = (new \ReflectionClass($this))->getShortName();
        if (strlen($result) > 10 && substr(strtolower($result), -10) === 'controller') {
            $result = substr($result, 0, -10);
        }

        return $result;
    }
protected function getViewPath(): string
    {
        $result = (new \ReflectionClass($this))->getShortName();
        if (strlen($result) > 10 && substr(strtolower($result), -10) === 'controller') {
            $result = substr($result, 0, -10);
        }

        return $result;
    }
protected function getViewPath ( ) : string { $ result = ( new \ ReflectionClass ( $ this ) ) -> getShortName ( ) ; if ( strlen ( $ result ) > 10 && substr ( strtolower ( $ result ) , - 10 ) === 'controller' ) { $ result = substr ( $ result , 0 , - 10 ) ; } return $ result ; }
Returns the path to the view files.

@since 1.0.0

@return string The path to the view files.
Returns the path to the view files .