-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{getImageDimensions image = $tmpImages[0]} error #1077
Comments
does the code work for you when adding the space? 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: |
Yes I think you are right. Because I have errors on all my plugins when I try to use the extension. I don't see the result. I described my problem completely here 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!! Any idea? |
Answered in #1072. |
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: