ReflectionException

Class NewsModule does not exist

/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

Stack Trace

#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     }
#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();
2024-03-28 23:35:18 Apache/2.4.29 Yii Framework/1.1.19