Пример #1
0
 public function init_data($key = '')
 {
     parent::init_data($key);
     $this->find_plugins();
     foreach ($this->data_array as $pl) {
         if (isset($pl->installed) && $pl->installed) {
             $class = $pl->namespace . '\\Plugin';
             if (!$this->app->container->has($pl->namespace)) {
                 $this->app->add(new $class($pl));
             }
         }
     }
 }
Пример #2
0
 public function init_data($key = '')
 {
     parent::init_data($key);
     $this->find_templates();
 }