Exception

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

/home/users/s/sibdsgos/domains/msch4omsk.ru/protected/modules/pages/controllers/PagesController.php(28)

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 
23     public function actionRead($url){
24         $url=trim($url);
25         if(isset($url)&&$url!=""){
26             $page = Pages::getByUrl($url);
27             if(!$page)
28                 throw new Exception("Страница не найдена!", 404);
29             if(!empty($page['layout']))
30                 $this->layout = '//layouts/'.$page['layout'];
31             if ($page['structure_id']){
32                 $mainPage = Pages::getById($page['page_id']);
33                 $this->mainPage = array(
34                     'title' => $page['name'],
35                     'url' => $mainPage['url'],
36                 );
37                 $this->menu_id = $page['menu_id'];
38             }
39             $this->render('read', array('model'=>$page));
40         }else{

Stack Trace

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