Exception

Page not found

/home/h242236-2/npnop.ru/docs/reestrsro/protected/controllers/SiteController.php(124)

112             $model->attributes=$_POST['InsuranceCompany'];
113 
114         $this->render('insurance',array(
115             'model'=>$model,
116         ));
117     }
118 
119     public function actionInsuranceCompany($id) {
120 
121         $model = InsuranceCompany::model()->findByPk($id);
122 
123         if(!$model)
124             throw new Exception('Page not found', 404);
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)

Stack Trace

#9
+
 /home/h242236-2/npnop.ru/docs/reestrsro/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-29 11:18:00 Apache/2.4.53 (Red Hat Enterprise Linux 8) PHP/7.3.33 Yii Framework/1.1.13