All,
The following code:
if(isset($this->input->post('foods')) && $this->input->post('foods') == '0')
{
$_SESSION['error'] = "<div class='error'>You must select something from the Foods menu.</div>";
$this->select_food();
}produces the following error:
Fatal error: Can’t use method return value in write context in {path to file…} on line 126
Line 126 is the first line, the IF statement.
Is there a way to check the post vars in CI other then just accessing the POST superglobal directly? (which does not produce the error), I like to stay within the framework where possible for clarity’s sake.
Joel