Tuesday, 15 July 2014

php - Getting Undefined Property Notice Even Though Its Defined -



php - Getting Undefined Property Notice Even Though Its Defined -

i started on yii today , have existing project work on. when trying run project, getting next notice -

notice: undefined property: cwebapplication::$v_glob in ..\controllers\sitecontroller.php on line 10

when check sitecontroller class see v_glob indeed defined. how class looks -

class sitecontroller extends controller { public function init() { yii::app()->v_glob; parent::init(); } /* other functions */ }

due notice getting fatal errors wherever trying phone call fellow member functions. how can resolve this?

well, take @ notice :

undefined property: cwebapplication::$v_glob

the attribute v_glob has defined in cwebapplication, not in sitecontroller...

ps : , next line not useful:

yii::app()->v_glob;

php yii

No comments:

Post a Comment