Exception

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

/home/users/s/sibds1/domains/xn--55-slcdv1i.xn--p1ai/protected/modules/gallery/controllers/GalleryController.php(29)

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 actionList($url){
24         $galleryLayout = 'read';
25         $url=trim($url);
26         if(isset($url)&&$url!=""){
27             $gallery = Gallery::getByUrl($url);
28             if(!$gallery) {
29                 throw new Exception("Страница не найдена!", 404);
30             }
31             if(!empty($gallery['layout'])){
32                 $galleryLayout = $gallery['layout'];
33             }
34             // echo $galleryLayout;
35             $this->render($galleryLayout, array('model'=>$gallery));
36         }else{
37             throw new Exception("Страница не найдена!", 404);
38         }
39     }
40 }

Stack Trace

#14
+
 /home/users/s/sibds1/domains/xn--55-slcdv1i.xn--p1ai/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 11:17:19 Apache Yii Framework/1.1.14