Can't use method return value in write context--how to fix for include_once?
- by Bill Paetzke
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...