Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->page = new XPage($this);
     if (app()->theme == null) {
         //            if (Application::param('ADMIN_THEME') !== null)
         //                Yii::app()->theme = Application::param('ADMIN_THEME');
         //            else
         Yii::app()->theme = 'indition';
     }
 }
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     Yii::app()->theme = SETTINGS_THEME;
     Yii::app()->layout = SETTINGS_DEFAULT_LAYOUT;
     //Set Session time
     //Get the session setting and check for empty
     $sessionSetting = SETTINGS_SESSION_TIME;
     if (!empty($sessionSetting)) {
         $sessions = eval('return ' . SETTINGS_SESSION_TIME . ';');
         $domain = $_SERVER['SERVER_NAME'];
         if (array_key_exists($domain, $sessions)) {
             Yii::app()->session->timeout = $sessions[$domain] * 60;
         }
     }
     //TODO: add your custom initialization code here
 }
Ejemplo n.º 3
0
 public function init()
 {
     parent::init();
 }