Multiple method calls from library |
Hi there,
I would like to know how can I call two methods from library in a loop? For example I have library called "Test" and I load it in my controller PHP Code: $this->load->library('test'); I have array with values, for example: PHP Code: $values = array(10, 20, 30, 40, 50); Now I have to loop through that array and call two methods from my library: PHP Code: foreach($values as $value) { My problem is that after the first call of these methods I can see returned value but after that I'm not getting any remaining values. How can I achieve that in CodeIgniter? |
Messages In This Thread |
Multiple method calls from library - by ManOfHonor - 11-04-2016, 02:55 PM
RE: Multiple method calls from library - by ramadhansutejo - 11-04-2016, 08:16 PM
RE: Multiple method calls from library - by InsiteFX - 11-05-2016, 04:46 AM
RE: Multiple method calls from library - by ManOfHonor - 11-05-2016, 02:13 PM
RE: Multiple method calls from library - by InsiteFX - 11-06-2016, 03:44 AM
RE: Multiple method calls from library - by ramadhansutejo - 11-06-2016, 06:44 PM
RE: Multiple method calls from library - by ManOfHonor - 11-08-2016, 05:08 AM
|