/** * Инициализация модуля * * @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'; } }
/** * Инициализация модуля * * @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'); }
/** * Инициализирует модуль * */ public static function initialize() { self::$helpers = Object::Aggregator()->fallback_to(Templates::helpers()); }