Example #1
0
File: View.php Project: atmoz/phiew
 /**
  * @param string $view
  * @param array $data
  * @return null|string
  */
 public static function render($view, $data = array())
 {
     $template = new Phiew_View_Template();
     $template->setTemplateFolder(self::getTemplateFolder());
     return $template->render($view, $data);
 }
Example #2
0
 public static function capture($view, $data = array())
 {
     $template = new Phiew_View_Template();
     return $template->capture($view, $data);
 }