You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still trying to migrate from v4 to v5...
I try also to use extensions for tags and modifiers
This line is ok in smarty v4 {getImageDimensions image = $tmpImages[0]}
But in smarty v5 I get Got error 'PHP message: PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:zzzzPage.tpl" on line 235 "{getImageDimensions image = $tmpImages[0]}" unknown tag 'getImageDimensions'
If I modify my line like this (adding a blank after the first bracket), it becomes ok { getImageDimensions image = $tmpImages[0]}
The text was updated successfully, but these errors were encountered:
i have somewhat similar problem that a registered tag compiler is not executed. in my case, adding the space before the tagname prevents the error, but the code does not get executed and smarty just outputs the curly braces and its contents as string.
EDIT:
might be related to #907 and #910.
in my case it was a custom tag compiler that was registered as "CustomTag". i was unable to use it with "{CustomTag}" in a template. got it working again after changing the registerPlugin call to "customtag" instead.
FWIW: i am migrating a codebase from smarty 3.
I am blocked in my migration in v5 to convert all my plugins and modifiers (more than 50) in an extension. I'm quite sure to follow the doc but that doesn't work. If I use registerPlugin, everything is ok but I don't like this solution, it seems not very performant as I have more than 50 call to registerPlugin!!
Still trying to migrate from v4 to v5...
I try also to use extensions for tags and modifiers
This line is ok in smarty v4
{getImageDimensions image = $tmpImages[0]}
But in smarty v5 I get
Got error 'PHP message: PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:zzzzPage.tpl" on line 235 "{getImageDimensions image = $tmpImages[0]}" unknown tag 'getImageDimensions'
If I modify my line like this (adding a blank after the first bracket), it becomes ok
{ getImageDimensions image = $tmpImages[0]}
The text was updated successfully, but these errors were encountered: