public function generateViewFile($content)
    {
        $name = $this->getRandomName();

        $path = sys_get_temp_dir();

        $filename = $path.'/'.$name.'.twig';

        if (!file_exists(dirname($filename))) {
            mkdir(dirname($filename), 0755, true);
        }

        file_put_contents($filename, $content);

        return $filename;
    }
public function generateViewFile($content)
    {
        $name = $this->getRandomName();

        $path = sys_get_temp_dir();

        $filename = $path.'/'.$name.'.twig';

        if (!file_exists(dirname($filename))) {
            mkdir(dirname($filename), 0755, true);
        }

        file_put_contents($filename, $content);

        return $filename;
    }
public function generateViewFile ( $ content ) { $ name = $ this -> getRandomName ( ) ; $ path = sys_get_temp_dir ( ) ; $ filename = $ path . '/' . $ name . '.twig' ; if ( ! file_exists ( dirname ( $ filename ) ) ) { mkdir ( dirname ( $ filename ) , 0755 , true ) ; } file_put_contents ( $ filename , $ content ) ; return $ filename ; }
Generate a view file.

@param string $content

@return string
Generate a view file .