src/Valkyrja/View/PhpView.php
public function template(string $template): View
    {
        $this->template     = $template;
        $this->templatePath = $this->getFullPath($template);

        return $this;
    }
public function template(string $template): View
    {
        $this->template     = $template;
        $this->templatePath = $this->getFullPath($template);

        return $this;
    }
Set the template for the view.

@param string $template The template

@throws InvalidConfigPath

@return \Valkyrja\View\View