protected function renderFile($template, $target, $model)
    {
        if (!is_dir(dirname($target))) {
            mkdir(dirname($target), 0777, true);
        }

        $this->files[] = $target;

        return file_put_contents($target, $this->render($template, $model));
    }
protected function renderFile($template, $target, $model)
    {
        if (!is_dir(dirname($target))) {
            mkdir(dirname($target), 0777, true);
        }

        $this->files[] = $target;

        return file_put_contents($target, $this->render($template, $model));
    }
protected function renderFile ( $ template , $ target , $ model ) { if ( ! is_dir ( dirname ( $ target ) ) ) { mkdir ( dirname ( $ target ) , 0777 , true ) ; } $ this -> files [ ] = $ target ; return file_put_contents ( $ target , $ this -> render ( $ template , $ model ) ) ; }
Render a template and result is dumped to a file.

@param string $template Path to the template file
@param string $target   Filename result
@param array  $model    key-value array that acts as model

@return int|bool Numer of byte that were written or false if error
Render a template and result is dumped to a file .