/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/i18n/CPhpMessageSource.php(118)
106 if(!isset($this->_files[$category][$language])) 107 { 108 if(($pos=strpos($category,'.'))!==false) 109 { 110 $extensionClass=substr($category,0,$pos); 111 $extensionCategory=substr($category,$pos+1); 112 // First check if there's an extension registered for this class. 113 if(isset($this->extensionPaths[$extensionClass])) 114 $this->_files[$category][$language]=Yii::getPathOfAlias($this->extensionPaths[$extensionClass]).DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.$extensionCategory.'.php'; 115 else 116 { 117 // No extension registered, need to find it. 118 $class=new ReflectionClass($extensionClass); 119 $this->_files[$category][$language]=dirname($class->getFileName()).DIRECTORY_SEPARATOR.'messages'.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.$extensionCategory.'.php'; 120 } 121 } 122 else 123 $this->_files[$category][$language]=$this->basePath.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.$category.'.php'; 124 } 125 return $this->_files[$category][$language]; 126 } 127 128 /** 129 * Loads the message translation for the specified language and category. 130 * @param string $category the message category
#0 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/i18n/CPhpMessageSource.php(118): ReflectionClass->__construct("NewsModule") 113 if(isset($this->extensionPaths[$extensionClass])) 114 $this->_files[$category][$language]=Yii::getPathOfAlias($this->extensionPaths[$extensionClass]).DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.$extensionCategory.'.php'; 115 else 116 { 117 // No extension registered, need to find it. 118 $class=new ReflectionClass($extensionClass); 119 $this->_files[$category][$language]=dirname($class->getFileName()).DIRECTORY_SEPARATOR.'messages'.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.$extensionCategory.'.php'; 120 } 121 } 122 else 123 $this->_files[$category][$language]=$this->basePath.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.$category.'.php'; |
#1 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/i18n/CPhpMessageSource.php(136): CPhpMessageSource->getMessageFile("NewsModule.news", "ru") 131 * @param string $language the target language 132 * @return array the loaded messages 133 */ 134 protected function loadMessages($category,$language) 135 { 136 $messageFile=$this->getMessageFile($category,$language); 137 138 if($this->cachingDuration>0 && $this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) 139 { 140 $key=self::CACHE_KEY_PREFIX . $messageFile; 141 if(($data=$cache->get($key))!==false) |
#2 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/i18n/CMessageSource.php(103): CPhpMessageSource->loadMessages("NewsModule.news", "ru") 098 */ 099 protected function translateMessage($category,$message,$language) 100 { 101 $key=$language.'.'.$category; 102 if(!isset($this->_messages[$key])) 103 $this->_messages[$key]=$this->loadMessages($category,$language); 104 if(isset($this->_messages[$key][$message]) && $this->_messages[$key][$message]!=='') 105 return $this->_messages[$key][$message]; 106 elseif($this->hasEventHandler('onMissingTranslation')) 107 { 108 $event=new CMissingTranslationEvent($this,$category,$message,$language); |
#3 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/i18n/CMessageSource.php(85): CMessageSource->translateMessage("NewsModule.news", "Product was not found!", "ru") 80 public function translate($category,$message,$language=null) 81 { 82 if($language===null) 83 $language=Yii::app()->getLanguage(); 84 if($this->forceTranslation || $language!==$this->getLanguage()) 85 return $this->translateMessage($category,$message,$language); 86 else 87 return $message; 88 } 89 90 /** |
#4 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/YiiBase.php(589): CMessageSource->translate("NewsModule.news", "Product was not found!", "ru") 584 if(self::$_app!==null) 585 { 586 if($source===null) 587 $source=($category==='yii'||$category==='zii')?'coreMessages':'messages'; 588 if(($source=self::$_app->getComponent($source))!==null) 589 $message=$source->translate($category,$message,$language); 590 } 591 if($params===array()) 592 return $message; 593 if(!is_array($params)) 594 $params=array($params); |
#5 |
+
–
/home/c/cq80407/public_html/protected/modules/services/controllers/ServicesController.php(25): YiiBase::t("NewsModule.news", "Product was not found!") 20 21 public function actionView($slug) 22 { 23 $model = Services::model()->find('slug=:slug', ['slug' => $slug]); 24 if (!$model) { 25 throw new CHttpException(404, Yii::t('NewsModule.news', 'Product was not found!')); 26 } 27 $this->slug = $slug; 28 $this->slider = $model->sliders; 29 $this->render('view', ['model' => $model]); 30 } |
#6 |
unknown(0): ServicesController->actionView("proverka-dokumentov-i-podacha-zayavki-na-predvaritelnyy-otbor-dl...")
|
#7 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(ServicesController, array("proverka-dokumentov-i-podacha-zayavki-na-predvaritelnyy-otbor-dl...")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#8 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ServicesController, ReflectionMethod, array("category" => "akkreditaciya-i-registraciya-na-ploshchadkah/federalnye-torgovye...", "slug" => "proverka-dokumentov-i-podacha-zayavki-na-predvaritelnyy-otbor-dl...")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#9 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("category" => "akkreditaciya-i-registraciya-na-ploshchadkah/federalnye-torgovye...", "slug" => "proverka-dokumentov-i-podacha-zayavki-na-predvaritelnyy-otbor-dl...")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#10 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#11 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#12 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("view") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#13 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("services/services/view") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#14 |
+
–
/home/c/cq80407/public_html/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#15 |
+
–
/home/c/cq80407/public_html/index.php(25): CApplication->run() 20 $confManager = new yupe\components\ConfigManager(); 21 $confManager->sentEnv(\yupe\components\ConfigManager::ENV_WEB); 22 23 require __DIR__ . '/vendor/autoload.php'; 24 25 Yii::createWebApplication($confManager->merge($base))->run(); |