08-30-2009, 04:36 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
|
Strange Notice Error .....
Hello!
I have debugged this problem for quite sometime now and cannot fix this damn notice error.
The errors I receive are
Code:
Notice: Use of undefined constant object - assumed 'object' in /var/www/unus/library/Acl/Role.php on line 45
Notice: Use of undefined constant object - assumed 'object' in /var/www/unus/library/Acl/Resource.php on line 45
Turning Notice errors off is not the answer ....
Here is the code, the setData method is just a object that holds data information in key => value mapping
php Code:
// Role.phppublic function __construct(){ $this-> setData('acl', new Unus_Role ()); }// Resource.phppublic function __construct(){ $this-> setData('acl', new Unus_Resource ()); }
As far as I can tell from this is somehow, someway it is seeing the Object as a constant and finding it undefined... this happens is php 5.2 and 5.3 (maybe its a bug)
|
|
|
|