render()
render(mixed $haystack, string $needle, string $methodPrefix = null) : mixed
Parameters
mixed | $haystack | |
string | $needle | |
string | $methodPrefix |
Allows accessing an array's value by its key or object's property or method by its name in order to achieve a "dynamic" path in Fluid, kind of {fooarray.{dynamic}}, which is not possible yet, can be replaced with {my:objectAccess(haystack: fooarray, needle: key)}.