PHP notice

Trying to get property 'dateDoc' of non-object

/var/www/html/reestr/protected/views/site/certificateView.php(11)

01 <h5>Ранее выданное свидетельство о допуске (архив):</h5>
02 
03 <?php $this->widget('bootstrap.widgets.TbDetailView',array(
04     'data'=>$model,
05     'attributes'=>array(
06         array(
07             'name'=>'numberBill',
08         ),
09         array(
10             'name'=>'dateDoc',
11             'visible'=>($model->dateDoc!="" && $model->dateDoc!=0) ? true : false,
12         ),
13         array(
14             'name'=>'state',
15             'value'=>$model->getStateOption(),
16             'visible'=>($model->state!="" && $model->state!=0) ? true : false,
17         ),
18         array(
19             'name'=>'protocolDate',
20             'visible'=>($model->protocolDate!="" && $model->protocolDate!=0) ? true : false,
21         ),
22         array(
23             'name'=>'protocolNumber',

Stack Trace

#4
+
 /var/www/html/reestr/protected/controllers/SiteController.php(66): CController->render("certificateView", array("model" => null))
61     public function actionCertificateView($id)
62     {
63         $model = Certificates::model()->findByPk($id);
64 
65         $this->render('certificateView',array(
66             'model'=>$model,
67         ));
68     }
69 
70     public function actionSanction()
71     {
#14
+
 /var/www/html/reestr/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
15 ?>
2024-03-28 15:55:51 nginx/1.16.1 Yii Framework/1.1.13