flight\Engine::_render PHP Method

_render() public method

Renders a template.
public _render ( string $file, array $data = null, string $key = null )
$file string Template file
$data array Template data
$key string View variable name
    public function _render($file, $data = null, $key = null)
    {
        if ($key !== null) {
            $this->view()->set($key, $this->view()->fetch($file, $data));
        } else {
            $this->view()->render($file, $data);
        }
    }