![]() |
Why is this labeled undefined? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Why is this labeled undefined? (/showthread.php?tid=30448) |
Why is this labeled undefined? - El Forum - 05-15-2010 [eluser]DaTran[/eluser] To me it doesn't look like $id is undefined? print_r() comes out as: Code: Array and my view page Code: <?php echo form_open('auction/edit/'.$id); ?> Why is this labeled undefined? - El Forum - 05-15-2010 [eluser]theprodigy[/eluser] can I see the code from the controller that populates what you are passing into the print_r? If you are pulling from a model, I would like to see that code as well please. Why is this labeled undefined? - El Forum - 05-15-2010 [eluser]DaTran[/eluser] The controller: Code: elseif($data = $this->model_auction->retreave($this->uri->segment(3))) The model: Code: function retreave($id = NUll) Why is this labeled undefined? - El Forum - 05-15-2010 [eluser]DaTran[/eluser] Found the problem I didn't rename the $query to $data before passing into view. Thanks |