C:\xampp\htdocs\protected\modules\translate\components\MPTranslate.php(201)
189 $key=self::ID; 190 if(($language=@$this->_cache['language'])!==null) 191 return $language; 192 elseif(Yii::app()->getSession()->contains($key)) 193 $language=Yii::app()->getSession()->get($key); 194 elseif(isset($_POST[$key]) && !empty($_POST[$key])) 195 $language=$_POST[$key]; 196 elseif(isset($_GET[$key]) && !empty($_GET[$key])) 197 $language=$_GET[$key]; 198 else 199 $language=Yii::app()->getRequest()->getPreferredLanguage(); 200 201 if(!key_exists($language,$this->acceptedLanguages)){ 202 if($language===Yii::app()->sourceLanguage) 203 $language=$this->defaultLanguage; 204 elseif(strpos($language,"_")!==false){ 205 $language=substr($language,0,2); 206 if(!key_exists($language,$this->acceptedLanguages)) 207 $language=$this->defaultLanguage; 208 } 209 } 210 return $language; 211 } 212 /** 213 *
#0 |
+
–
C:\xampp\htdocs\protected\modules\translate\components\MPTranslate.php(201): key_exists(false, array("en" => "English", "lo" => "ພາສາລາວ")) 196 elseif(isset($_GET[$key]) && !empty($_GET[$key])) 197 $language=$_GET[$key]; 198 else 199 $language=Yii::app()->getRequest()->getPreferredLanguage(); 200 201 if(!key_exists($language,$this->acceptedLanguages)){ 202 if($language===Yii::app()->sourceLanguage) 203 $language=$this->defaultLanguage; 204 elseif(strpos($language,"_")!==false){ 205 $language=substr($language,0,2); 206 if(!key_exists($language,$this->acceptedLanguages)) |
#1 |
+
–
C:\xampp\htdocs\protected\modules\translate\components\MPTranslate.php(54): MPTranslate->getLanguage() 49 */ 50 function init(){ 51 if(empty($this->defaultLanguage)) 52 $this->defaultLanguage=Yii::app()->getLanguage(); 53 if($this->autoSetLanguage) 54 $this->setLanguage($this->getLanguage()); 55 if(!count($this->acceptedLanguages)){ 56 if(($sourceLanguage=Yii::app()->sourceLanguage)!==null) 57 $this->acceptedLanguages[$sourceLanguage]=$sourceLanguage; 58 if(($targetLanguage=Yii::app()->getLanguage())!=null) 59 $this->acceptedLanguages[$targetLanguage]=$targetLanguage; |
#2 |
+
–
C:\xampp\htdocs\yiiframework\base\CModule.php(387): MPTranslate->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
C:\xampp\htdocs\yiiframework\base\CModule.php(523): CModule->getComponent("translate") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#4 |
+
–
C:\xampp\htdocs\yiiframework\base\CApplication.php(163): CModule->preloadComponents() 158 $this->initSystemHandlers(); 159 $this->registerCoreComponents(); 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 |
#5 |
+
–
C:\xampp\htdocs\yiiframework\YiiBase.php(125): CApplication->__construct("C:\xampp\htdocs/protected/config/main.php") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#6 |
+
–
C:\xampp\htdocs\yiiframework\YiiBase.php(98): YiiBase::createApplication("CWebApplication", "C:\xampp\htdocs/protected/config/main.php") 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
#7 |
+
–
C:\xampp\htdocs\index.php(14): YiiBase::createWebApplication("C:\xampp\htdocs/protected/config/main.php") 09 defined('YII_DEBUG') or define('YII_DEBUG',true); 10 // specify how many levels of call stack should be shown in each log message 11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |