Exception

Page not found

/home/users/b/baikalsro/domains/baikalsro.ru/reestr/protected/controllers/SiteController.php(137)

125 
126         $this->render('viewInsuranceCompany',array(
127             'model'=>$model,
128         ));
129     }
130 
131     public function actionViolation($id) {
132         $sanction = Sanction::model()->findByAttributes(array('iddoc'=>$id));
133         $violations = Violation::model()->findAllByAttributes(array('iddoc'=>$id));
134         $model = Members::model()->findByPk($sanction->id_member);
135 
136         if(!$model)
137             throw new Exception('Page not found', 404);
138 
139         $this->render('violation',array(
140             'model'=>$model,
141             'sanction'=>$sanction,
142             'violations'=>$violations,
143         ));
144     }
145 
146     public function actionView($id)
147     {
148         if (strlen($id)>=10){
149             $db = Yii::app()->db;

Stack Trace

#9
+
 /home/users/b/baikalsro/domains/baikalsro.ru/reestr/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
18 
2024-04-16 10:46:50 Apache Yii Framework/1.1.13