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;
    }