Exemplo n.º 1
0
 /**
  * parse a smarty template and return teh result as string
  *
  * @author Erik Amaru Ortiz <*****@*****.**>
  * @param $template string
  *        	containing the template filename on /gulliver/templates/
  *        	directory
  * @param $data associative
  *        	array containig the template data
  * @return $content string containing the parsed template content
  */
 public function parseTemplate($template, $data = array())
 {
     $content = '';
     ob_start();
     g::renderTemplate($template, $data);
     $content = ob_get_contents();
     ob_get_clean();
     return $content;
 }