CodeIgniter Forums
Errors with ocular v0.25 - undefined property: CI_Loader::$CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Errors with ocular v0.25 - undefined property: CI_Loader::$CI (/showthread.php?tid=12793)



Errors with ocular v0.25 - undefined property: CI_Loader::$CI - El Forum - 10-31-2008

[eluser]Gaz[/eluser]
HI all,

I'm getting an error when calling

Code:
ocular::yield()

from my view file. The error is

Code:
ERROR - 2008-10-31 12:55:01 --> Severity: Notice  --> Undefined property: CI_Loader::$CI /Users/Gaz/Sites/cisitebuilder/application/libraries/Ocular.php 182
ERROR - 2008-10-31 12:55:01 --> Severity: Notice  --> Trying to get property of non-object /Users/Gaz/Sites/cisitebuilder/application/libraries/Ocular.php 182

I'm sure this is something simple (Ocular is loaded via autoload.php), but I thought someone else might have seen this error before.

I'm using CodeIgniter version 1.7, by the way.

Cheers,
Gaz.