foreach loop in a foreach loop |
Sorry for the late reply. It looks like the forum stopped sending email notifications, again!
I would do something like that: PHP Code: $data['categories'] = $this->books_model->get_categories(); In the view you can loop like that: PHP Code: foreach ($categories as $cat) {
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
foreach loop in a foreach loop - by DirkTeur - 03-26-2020, 04:46 AM
RE: foreach loop in a foreach loop - by includebeer - 03-26-2020, 06:25 AM
RE: foreach loop in a foreach loop - by DirkTeur - 03-27-2020, 03:35 PM
RE: foreach loop in a foreach loop - by DirkTeur - 03-28-2020, 11:37 AM
RE: foreach loop in a foreach loop - by includebeer - 03-30-2020, 01:58 PM
RE: foreach loop in a foreach loop - by DirkTeur - 04-15-2020, 10:41 AM
|