[eluser]thefatladysingsopera[/eluser]
I have this library i have written
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Globel {
public function le_gruqq()
{
echo 'true';
}
}
/* End of file Globel.php */
but when i call it inside my reports.php controller like
Code:
public function atone(){
echo $this->Globel->le_gruqq();
}
i get this error
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: Reports::$Globel
Filename: controllers/reports.php(3) : eval()'d code(1) : eval()'d code
Line Number: 15
Fatal error: Call to a member function le_gruqq() on a non-object in /var/www/html/ur/application/controllers/reports.php(3) : eval()'d code(1) : eval()'d code on line 15
I have loaded my library in the constructor the right way so i am not sure why calling a function in the library does not work.