[Can't use method return value in write context] for checking a form variable |
[eluser]sahanlak[/eluser]
This function is within a controller, Code: function settings() I'm getting an error @ [if( isset($this->input->post('update')) )] Why? Erro: Quote:Can't use method return value in write context
[eluser]theprodigy[/eluser]
you don't need to check if it's set. Just use: Code: if( $this->input->post('update') ) From the user_guide: Quote:The function returns FALSE (boolean) if the item you are attempting to retrieve does not exist. |
Welcome Guest, Not a member yet? Register Sign In |