Exception

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

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

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

Stack Trace

#16
+
 /home/users/s/sibds3/domains/stropan.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-28 14:57:51 Apache Yii Framework/1.1.12