Exemple #1
0
 /**
  * Render a file and return the content
  *
  * @param  string $filename
  * @return string
  */
 protected function _renderFile($filename)
 {
     $loader = $this->_front->getLoader();
     ob_start();
     $tempname = $loader->prepareLoad($filename);
     include $tempname;
     $loader->cleanupLoad($tempname);
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }