CHttpException

Not Found

/home/mosaica/server/catalog.mosaica.ru/protected/controllers/CardController.php(15)

03     class CardController extends Controller {
04         
05         public $layout = '//layouts/main';
06 
07         public function actionIndex($id = null) {
08             $this->actionView($id);
09         }
10 
11         public function actionView($id = null) {
12             
13             $company = Companies::model()->findByPk($id);
14             if ($company->hide && !Yii::app()->user->checkAccess('editor')) {
15                 throw new CHttpException(404, 'Not Found');
16             }
17             // var_dump($company->id_package);
18             if($company) {
19                 $template = 'minimal';
20                 
21                 if(isset($company->package->template)) {
22                     $path = Yii::getPathOfAlias('application.views.card.templates').'/';
23 
24                     $templateExists = file_exists($path.$company->package->template.'.php');
25 
26                     if($templateExists) {
27                         $template = $company->package->template;

Stack Trace

#9
+
 /home/mosaica/server/catalog.mosaica.ru/index.php(22): CApplication->run()
17 
18 
19 
20 
21 
22 Yii::createWebApplication($config)->run();
23 
24 // Yii::import('application.helpers.transliteration.*');
25 // print Transliteration::file('Привет! Мир!',false);
26 // die;
2024-03-19 13:42:46 nginx/1.18.0 Yii Framework/1.1.29