display error by function |
(06-15-2017, 04:59 PM)donpwinston Wrote: return the errors array. Then you can add it to your view like so: $this->load->view('your-view', ['errors' => $errors]); This is my function on controller (simple function only to try): Code: public function index(){ But in my view i have : A PHP Error was encountered Severity: Notice Message: Undefined variable: errors Filename: controllers/User.php |
Messages In This Thread |
display error by function - by pippuccio76 - 06-15-2017, 02:45 PM
RE: display error by function - by donpwinston - 06-15-2017, 04:59 PM
RE: display error by function - by pippuccio76 - 06-16-2017, 04:10 AM
|