PHP notice

Trying to get property of non-object

/home/hikaffwo/biennale.dp.ua/protected/controllers/ShopsController.php(59)

47         );
48     }
49 
50     /**
51      * Displays a particular model.
52      * @param integer $id the ID of the model to be displayed
53      */
54     public function actionView($link = '')
55     {
56         $model = Shops::model()->find('link = :link', array(
57             ':link' => $link
58         ));
59         $this->bg = '/files/userpics/imagecache/1600x875' . $model->image_bg;
60         if ($model === null) {
61             throw new CHttpException(404, Yii::t('app', 'Страница не существует'));
62         }
63 
64         $this->render('view', array(
65             'model' => $model,
66         ));
67     }
68 
69     /**
70      * Lists all models.
71      */

Stack Trace

#14
+
 /home/hikaffwo/biennale.dp.ua/index.php(27): CApplication->run()
22 // specify how many levels of call stack should be shown in each log message
23 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 0);
24 
25 require_once($composer);
26 require_once($yii);
27 Yii::createWebApplication($config)->run();
28 
29 //echo (microtime(true)-$start);
2024-03-29 17:41:36 Apache Yii Framework/1.1.15