Exception

Page not found

/home/roapsouz/reestr.roapsouz.ru/docs/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/roapsouz/reestr.roapsouz.ru/docs/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();
14 ?>
2024-03-28 12:02:59 Apache/2.4.53 (Red Hat Enterprise Linux 8) PHP/7.3.33 Yii Framework/1.1.13