Exception

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

/home/l/luxtravel/podgorodka.rf/public_html/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             }
30             if(!empty($page['layout'])){
31                 $this->layout = '//layouts/'.$page['layout'];
32             }
33             $this->render('read', array('model'=>$page));
34         }else{
35             throw new Exception("Страница не найдена!", 404);            
36         }        
37     }
38 }

Stack Trace

#14
+
 /home/l/luxtravel/podgorodka.rf/public_html/index.php(19): CApplication->run()
14  defined('YII_DEBUG') or define('YII_DEBUG',true);
15 // specify how many levels of call stack should be shown in each log message
16 // defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
20 ?>
2024-03-19 09:59:03 Apache/2.4.55 (Unix) Yii Framework/1.1.11