fenom
fenom copied to clipboard
Accessing template variables from function tag/modifier
I would like to have this new functionality
Hi,
Is it possible to access template variables from a function (non compiler) tag/modifier?
For example, I want to automatically display a field error from $errors
variables assigned to the template. I could create a tag {error "field"}
which will automatically display the field error if it exists in the $errors
variable. But I can't find the way to access the assigned variables.