Kohana_Twig::render PHP Метод

render() публичный Метод

Note: Global variables with the same key name as local variables will be overwritten by the local variable.
public render ( $file = NULL ) : string
Результат string
    public function render($file = NULL)
    {
        if ($file !== NULL) {
            $this->set_filename($file);
        }
        if (empty($this->_file)) {
            throw new Kohana_View_Exception('You must set the file to use within your view before rendering');
        }
        // Combine local and global data and capture the output
        return $this->_environment->loadTemplate($this->path())->render($this->as_array());
    }