Accessing associative arrays from models - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Accessing associative arrays from models (/showthread.php?tid=46307) |
Accessing associative arrays from models - El Forum - 10-26-2011 [eluser]condoace[/eluser] I want to grab some data from a model and pass it to a controller. How do I turn the $query variable in my controller into a set of independant variables so I can pass them to another method etc.. here is my code thus far: I want the variable $my_id to store the id value from the model. CONTROLLER Code: $this->load->model('Model_employees'); MODEL Code: function get_my_credits($id) { |