Phrozn\Site\View\Plain::render PHP Method

render() public method

Render view. Twig views are rendered within layout.
public render ( array $vars = [] ) : string
$vars array List of variables passed to text processors
return string
    public function render($vars = array())
    {
        return parent::render($vars);
    }

Usage Example

Beispiel #1
0
 public function testNoSourcePathSpecified()
 {
     $this->setExpectedException('Exception', "View input file not specified");
     $view = new View();
     $rendered = $view->render();
 }