Exemplo n.º 1
0
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     // default language
     if (isset(Yii::app()->language)) {
         $this->setLanguage(Yii::app()->language);
     } else {
         $this->setLanguage('en');
     }
 }
Exemplo n.º 2
0
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $_SESSION['KCFINDER']['disabled'] = false;
     // enables the file browser in the admin
     $_SESSION['KCFINDER']['uploadURL'] = Yii::app()->baseUrl . "/ckfinder/";
     // URL for the uploads folder
     $_SESSION['KCFINDER']['uploadDir'] = $_SERVER['DOCUMENT_ROOT'] . "/ckfinder/";
     // path to the uploads folder
     $this->setLanguage(Yii::app()->language);
 }
Exemplo n.º 3
0
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     //$this->setLanguage(Yii::app()->language);
 }
Exemplo n.º 4
0
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->language = empty(Yii::app()->language) ? $this->language : Yii::app()->language;
 }
Exemplo n.º 5
0
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->options['language'] = Yii::app()->language;
 }
Exemplo n.º 6
0
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     $this->setLanguage(Yii::app()->language);
     if (Yii::app()->theme) {
         $this->contentCSS = Yii::app()->baseUrl . '/css/template.css';
     }
 }