On 31.8.2011. 19:09, Michael Sole wrote:
Actually this is how I have it:
http://pastebin.com/1Z1EcQcZ
And the error is:
Fatal error: Call to a member function info() on a non-object in
And in this case it would be on this line:
$this->log->info("From within");
The example you provided works ok on my machine.
The error says that you do not have an object in $this->log. Can you
double check what is stored in $this->log after you initialize it? E.g.
use a var_dump just after line 11.
It should contain a Logger object at that point.
Regards,
Ivan