示例#1
0
 public function __construct($boot)
 {
     parent::__construct($boot);
     CurrentUser::detectUser($this);
     $this->elib_tpl_dirs = Util\Libs::detect();
     if (sizeof($this->elib_tpl_dirs) > 1) {
         $this->assign('elibtpl_arr', $this->elib_tpl_dirs);
     } else {
         $this->assign('elibtpl', $this->elib_tpl_dirs[0]);
     }
     if (Util\Libs::getStoreActive()) {
         CurrentUser::detectUser($this, true);
     }
 }
示例#2
0
 public function __construct($boot)
 {
     parent::__construct($boot);
     CurrentUser::detectUser($this);
     $this->assignELibTemplateDir();
 }