src/View.php
public function renderInclude($name, $path = null)
    {
        if (!isset($this->view)) {
            throw new ViewException('Please Define view engine in app/View.php', 500);
        }

        if (!is_null($this->dir)) {
            $this->view->setTemplateDir($this->dir);
        }

        return $this->view->renderInclude($name, $path);
    }
public function renderInclude($name, $path = null)
    {
        if (!isset($this->view)) {
            throw new ViewException('Please Define view engine in app/View.php', 500);
        }

        if (!is_null($this->dir)) {
            $this->view->setTemplateDir($this->dir);
        }

        return $this->view->renderInclude($name, $path);
    }
public function renderInclude ( $ name , $ path = null ) { if ( ! isset ( $ this -> view ) ) { throw new ViewException ( 'Please Define view engine in app/View.php' , 500 ) ; } if ( ! is_null ( $ this -> dir ) ) { $ this -> view -> setTemplateDir ( $ this -> dir ) ; } return $ this -> view -> renderInclude ( $ name , $ path ) ; }
File including

@param string $name
@param null   $path

@return mixed
File including