public function setView($viewName)
    {
        $view = $this->pathToView . DIRECTORY_SEPARATOR . strtolower($viewName) . '.php';

        if (!file_exists($view)) {
            throw new Exception\LookupException('View: "' . $view . '" could not be found.');
        }

        $this->viewQueue[$viewName] = $view;
    }
public function setView($viewName)
    {
        $view = $this->pathToView . DIRECTORY_SEPARATOR . strtolower($viewName) . '.php';

        if (!file_exists($view)) {
            throw new Exception\LookupException('View: "' . $view . '" could not be found.');
        }

        $this->viewQueue[$viewName] = $view;
    }
public function setView ( $ viewName ) { $ view = $ this -> pathToView . DIRECTORY_SEPARATOR . strtolower ( $ viewName ) . '.php' ; if ( ! file_exists ( $ view ) ) { throw new Exception \ LookupException ( 'View: "' . $ view . '" could not be found.' ) ; } $ this -> viewQueue [ $ viewName ] = $ view ; }
formats and prepares view for inclusion
@param $viewName
@return string
@throws Exception\LookupException
formats and prepares view for inclusion