Example #1
0
 public static function init()
 {
     global $infrajs;
     Event::handler('oninit', function () {
         Run::runAddList('layers');
     });
 }
Example #2
0
 public static function init()
 {
     global $infra, $infrajs;
     Event::handler('oninit', function () {
         //session и template
         global $infra_template_scope;
         $fn = function ($name, $value) {
             return unick::find($name, $value);
         };
         Sequence::set($infra_template_scope, Sequence::right('infrajs.find'), $fn);
         Sequence::set($infra_template_scope, Sequence::right('infrajs.unicks'), unick::$unicks);
     });
 }