I am using codeigniter form validation. To display form errors it uses this
$this->data['message'] = (validation_errors() ?
validation_errors() :
($this->auth_lib->errors() ?
$this->auth_lib->errors() :
$this->session->flashdata('message')))
I don't understand this syntax. I think it is an if else statement. It is very hard to understand.
Can anyone please convert this to a normal if else statement?
Because now i am going to change the error message format:
$this->message->set_error($msg=array('Test 1','Test 2'));
$message=$this->message->get_message();
$this->data['message']=$message;
Anyone, please simplify the syntax. Thanks.