fenom icon indicating copy to clipboard operation
fenom copied to clipboard

Accessing template variables from function tag/modifier

Open char101 opened this issue 3 years ago • 1 comments

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.

char101 avatar Apr 15 '21 05:04 char101