Exception

Страница не найдена!

/home/users/s/sibds3/domains/tkbos.ru/protected/modules/pages/controllers/PagesController.php(30)

18                 'CHttpCacheFilter + read',
19                 'lastModified'=>Yii::app()->db->createCommand("SELECT `date_change` FROM `{{pages}}` WHERE url='".Yii::app()->request->getParam('url')."'")->queryScalar(),
20             ), // lastModified
21             */
22         );
23     }
24 
25     public function actionRead($url){
26         $url=trim($url);
27         if(isset($url)&&$url!=""){
28             $page = Pages::getByUrl($url);
29             if(!$page)
30                 throw new Exception("Страница не найдена!", 404);
31             if(!empty($page['layout']))
32                 $this->layout = '//layouts/'.$page['layout'];
33 
34                 $this->banner_id = $page['banner_id'];
35 
36         
37             $this->render('read', array('model'=>$page));
38         }else{
39             throw new Exception("Страница не найдена!", 404);
40         }
41     }
42 }

Stack Trace

#14
+
 /home/users/s/sibds3/domains/tkbos.ru/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG', true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 00:56:04 Apache Yii Framework/1.1.10