Lexy::file PHP Method

file() public method

[file description]
public file ( [type] $file, array $params = [], boolean $sandbox = false ) : [type]
$file [type]
$params array [description]
$sandbox boolean [description]
return [type]
    public function file($file, $params = array(), $sandbox = false)
    {
        if ($this->cachePath) {
            $cachedfile = $this->get_cached_file($file, $sandbox);
            if ($cachedfile) {
                ob_start();
                lexy_include_with_params($cachedfile, $params, $file);
                $output = ob_get_clean();
                return $output;
            }
        }
        return $this->execute(file_get_contents($file), $params, $sandbox, $file);
    }