コード例 #1
0
ファイル: Dashboard.php プロジェクト: rcrrich/cunity
 /**
  *
  */
 public function __construct()
 {
     $this->loadData();
     $modules = new Modules();
     $installedModules = $modules->getModules()->toArray();
     $config = \Cunity\Core\Cunity::get("config");
     $this->assignments['smtp_check'] = $config->mail->smtp_check;
     $this->assignments['modules'] = $installedModules;
     $this->assignments['version'] = $config->site->version;
     $this->render("dashboard");
 }
コード例 #2
0
ファイル: Module.php プロジェクト: rcrrich/cunity
 /**
  * @param $moduletag
  */
 public function __construct($moduletag)
 {
     $this->_tag = $moduletag;
     if (!class_exists($this->getClassName())) {
         new View\PageNotFound();
     } else {
         $modules = new Modules();
         $this->_data = $modules->getModuleData($this->_tag);
         if (!in_array($moduletag, self::$FIXMODULES) && $this->_data === null) {
             new PageNotFound();
         }
     }
 }