Exemplo n.º 1
0
 public static function initialize()
 {
     if (!is_object(self::$view)) {
         self::$template_path = realpath(ROOT_PATH . 'views/');
         self::$view = new Savant3(array('template_path' => array(self::$template_path)));
         if (file_exists(AWS_PATH . 'config.inc.php') and class_exists('AWS_APP', false)) {
             self::$in_app = true;
         }
     }
     return self::$view;
 }
Exemplo n.º 2
0
 public static function init()
 {
     if (!is_object(self::$view)) {
         self::$template_path = realpath(TMS_APP_DIR . '/views/');
         self::$view = new MySavant3(array('template_path' => array(self::$template_path), 'exceptions' => true));
     }
     return self::$view;
 }