Can't use method return value in write context--how to fix for include_once?

Posted by Bill Paetzke on Stack Overflow See other posts from Stack Overflow or by Bill Paetzke
Published on 2011-11-15T01:47:06Z Indexed on 2011/11/15 1:50 UTC
Read the original article Hit count: 206

Filed under:
|

I'm getting this error in CodeIgniter when trying to load the email library:

Can't use method return value in write context

It's happening on line 827 of Loader.php in [codeigniter root]/system/libraries/Loader.php

include_once($filepath);

where $filepath equals "/var/www/system/libraries/Email.php"

I called it like this in another php file:

$this->load->library('email');

where $this is the CodeIgniter instance.

According to the CodeIgniter email doc page, I'm doing it right. But it's not working...

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about php-5.3