PHP notice

Trying to get property 'opf' of non-object

/var/www/html/reestr/protected/views/site/view.php(5)

01 <?php
02 /* @var $this SiteController */
03 /* @var $model Members */
04 
05 $this->pageTitle = $model->opf.' '.$model->name.' ('.$model->getStateOption($model->state).')';
06 
07 $dataView = array(
08     'model'=>      $model,
09     'sanctions'=>  $sanctions,
10     'auditPlans'=> $auditPlans,
11     'documents'=>  $documents,
12 );
13 
14 if(!function_exists('imagefordownload')){
15     function imagefordownload($filename)
16     {
17         $typename = substr(strrchr($filename, "."), 1);

Stack Trace

#4
+
 /var/www/html/reestr/protected/controllers/SiteController.php(186): CController->render("view", array("model" => null, "sanctions" => CActiveDataProvider, "auditPlans" => CActiveDataProvider, "documents" => CActiveDataProvider))
181 
182         $this->render('view',array(
183             'model'=>$model,
184             'sanctions'=>$sanctions,
185             'auditPlans'=>$auditPlans,
186             'documents'=>$documents,
187         ));
188     }
189 
190     public function actionViewpdf($id)
191     {
#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 22:48:39 nginx/1.16.1 Yii Framework/1.1.13