[Solved] stuck model id issue - 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: [Solved] stuck model id issue (/showthread.php?tid=1538) |
[Solved] stuck model id issue - wolfgang1983 - 03-19-2015 I am trying to be able to get the user group id from my database table, where the $name and $controller variable should work. Instead when I add my second parameter in the $this->getID() it throws error. A PHP Error was encountered Severity: Notice Message: Array to string conversion Filename: user/users_group_update.php Line Number: 45 Line 45 below PHP Code: 'edit' => site_url('admin/users_group_controller_update') .'/'. $this->getId($this->uri->segment(3), $controller) I know its in array but how can I fix it so can work. uri segment 3 returns the user group name. its all on the one controller at the moment the model stuff on controller just for testing. PHP Code: <?php RE: [Solved] stuck model id issue - wolfgang1983 - 03-19-2015 Problem solved I had to use db query inside my in_array to make it work with out errors showing PHP Code: <?php |