Return False Blocking Multiple Messages - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Return False Blocking Multiple Messages (/showthread.php?tid=64372) |
Return False Blocking Multiple Messages - wolfgang1983 - 02-13-2016 On my upload function I have a if in_array in my multiple upload. And sets multiple error messages. My problem now if I put return FALSE; It will stop the multiple messages from showing and only set one message. How can I solve this? Any ideas with examples thank you. PHP Code: public function upload($field = 'userfile') { RE: Return False Blocking Multiple Messages - skunkbad - 02-13-2016 Maybe something like this: PHP Code: /** RE: Return False Blocking Multiple Messages - wolfgang1983 - 02-14-2016 (02-13-2016, 11:42 PM)skunkbad Wrote: Maybe something like this: I need to use the return false. Not sure what I should PHP Code: $this->error_stack |