Nested arrays in parser with conditional rendering |
Hi,
I´d like to apply a conditional rendering in a nested iterator: Code: {parent} I tried to use a static index and it works, but would be necessary to know the current iterator index
Code: {parent} If there was something like:
Code: {if $parent[$parent_idx]->children[$children_idx]->someAttribute == "1"} Is this possible? There is any workaround? Code: CREATE TABLE `categories` ( PHP Code: public function generateTree(array $data, int $parent = 0, int $depth = 0): string What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |