예제 #1
0
 public function __construct(Model $model, content $view, $plugins, $server)
 {
     parent::__construct($model, $view, $plugins, $server);
     $this->view->add_dict("plugin_" . get_class($this));
     $this->view->add_dict("admin");
     if (!empty($_SESSION["mwcabuild"])) {
         $this->configs = Configs::readCfg(get_class($this), $_SESSION["mwcabuild"]);
     }
     //подгружаем конфиги модуля сразу);
 }
예제 #2
0
 public function __construct(Model $model, content $view, $plugins, $server)
 {
     parent::__construct($model, $view, $plugins, $server);
     $this->view->add_dict("plugin_" . get_class($this));
     $this->configs = Configs::readCfg("plugin_" . get_class($this), tbuild);
 }