Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
BUGFIX: Support nested fluid variables by using the original fluid method #1478
What I did
With this patch it's possible to use the fluid variable nesting feature as well as a specific accessor per element on the path.
How I did it
I changed the code to use the original logic which resolves nested variables.
How to verify it
Create a fluid template with nested variables that access an array value:
Assign an array and the two keys:
$this->view->assign('type', 'thing'); $this->view->assign('flavor', 'yellow'); $this->view->assign('config', ['thing' => ['value' => ['yellow' => 'Okayish']]]);
Render the template and assert that the output is "Okayish"