Ejemplo n.º 1
0
 /**
  * Инициализация модуля
  *
  * @param array $options
  */
 public static function initialize(array $options = array())
 {
     self::options($options);
     self::$helpers = Object::Aggregator();
     if (Core::option('deprecated')) {
         self::$options['templates_root'][] = Core::tao_dir() . '/deprecated/views';
     }
 }
Ejemplo n.º 2
0
Archivo: HTML.php Proyecto: techart/tao
 /**
  * Инициализация модуля
  *
  * @param array $options
  */
 public static function initialize(array $options = array())
 {
     self::$helpers = Object::Aggregator()->fallback_to(Templates::helpers());
     foreach (self::$options as $k => $v) {
         self::$options[$k] = str_replace('%files%', Core::option('files_name'), $v);
     }
     self::options($options);
     self::use_helper('forms', 'Templates.HTML.Helpers.Forms');
     self::use_helper('tags', 'Templates.HTML.Helpers.Tags');
     self::use_helper('assets', 'Templates.HTML.Helpers.Assets');
     self::use_helper('maps', 'Templates.HTML.Helpers.Maps');
 }
Ejemplo n.º 3
0
Archivo: JSON.php Proyecto: techart/tao
 /**
  * Инициализирует модуль
  * 
  */
 public static function initialize()
 {
     self::$helpers = Object::Aggregator()->fallback_to(Templates::helpers());
 }