PHP warning

Attempt to read property "layoutTitle" on null

/var/www/clients/client1/web22/web/protected/controllers/ClothingKnowledgeHubController.php(56)

44             ),
45         );
46     }
47 
48     /**
49      * Displays a particular model.
50      * @param integer $id the ID of the model to be displayed
51      */
52     public function actionView($id)
53     {
54         $model = ClothingKnowledgeHub::model()->findByPk($id, array('with'=>array('layout')));
55             //echo Yii::trace(CVarDumper::dumpAsString($model->layout), 'vardump');
56         $this->render($model->layout->layoutTitle, array(
57             'model'=> $model,
58         ));
59     }
60         
61         
62         /**
63      * Displays a particular model.
64      * @param integer $id the ID of the model to be displayed
65      */
66     public function actionDetail($id)
67     {
68                 

Stack Trace

#14
+
 /var/www/clients/client1/web22/web/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
2024-03-28 22:13:52 Apache Yii Framework/1.1.14