views:

43

answers:

2

I'm getting this fatal error message:

Fatal error: Can't use method return value in write context in C:\wamp\www\mySite\application\controllers\eventsManager.php on line 115

Could someone tell me what it means?

The line it refers to is this:

$this->session->set_flashdata('alert') = '<ul>'.validation_errors('<li>','</li>').'</ul>';
+2  A: 

That line should be:

$this->session->set_flashdata('alert', '<ul>'.validation_errors('<li>','</li>').'</ul>');
Phil Sturgeon
Ofcourse. Me just being dumb. Thanks for being a fresh set of eyes, Phil. ps just downloaded pyro-cms and loving what I'm seeing so far...
musoNic80
A: 

From a quick google search, I have gathered that the empty() function may be the culprit. It isn't in your code but it may be in set_flashdata() somewhere. empty() can only check a variable, not the return value of a function. Assign validation_errors('<li>','</li>') to at temp variable and insert the temp var instead.

Scott M.