Keep getting undefined variable error trying to pass variable into view |
Here is my controller
Code: $this->form_validation->set_rules('chipNumber', 'Chip Number', 'required'); and here is my view Code: <?php Essentially I'm trying to reload the view if form_validation fails, with the $data array set in the controller. It works ok except everytime I load the view, whether form_validation has had the chance to run or not I get an error that says Undefined Variable $data. Not sure what the right way is to go about this |
Messages In This Thread |
Keep getting undefined variable error trying to pass variable into view - by alexandervj - 08-09-2015, 09:38 AM
RE: Keep getting undefined variable error trying to pass variable into view - by CroNiX - 08-09-2015, 09:51 AM
RE: Keep getting undefined variable error trying to pass variable into view - by Wouter60 - 08-09-2015, 10:06 AM
|