Use deep nested array in view parser - 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: Use deep nested array in view parser (/showthread.php?tid=85986) |
Use deep nested array in view parser - sjender - 12-28-2022 Hi, I have this array: Code: [nav:footer] => Array And my view is: PHP Code: {{nav:footer}} And this results in: Code: home The children are obviously not parsed. Is there a way to achieve this (and even deeper) without having to use php? RE: Use deep nested array in view parser - kenjis - 12-28-2022 PHP Code: $data = [ RE: Use deep nested array in view parser - Sprint - 01-03-2023 Yes, there is a way to achieve this without using PHP. You can use a looping construct such as a "for" loop. For example: Code: {{nav:footer}} |