|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Sri_Lumpa Smarty Rookie
Joined: 24 Apr 2003 Posts: 8 Location: Paris, FRANCE
|
Posted: Thu Apr 24, 2003 8:59 am Post subject: Error Message with "compile_tag" function |
|
|
Hi all,
I'm new on this forum
I'm just used Smarty on a production product and I like way to separate design and functional.
However, I seen some little mistakes like this one :
With a specific browser configuration (I don't know the parameter which leads to error), several windows error message can appears.
For example, "; attendu" (with french configuration)
It's due to the way used to parse template :
for example, when parsing "if" or "elseif", the code is (in smarty_compiler.class.php) :
if ($elseif)
return '...$tokens).'):?>';
else
...
I don't understand the use of the ":" caracter added after the token (corresponding to the condition)
The generated HTML is like this : <?php if(condition):?>
This ":" make a error message window appears.
The same behavior appears with {else}, {section}...
and I don't have the time to analyse all Smarty classes, so I think about all of you ;oD
Any explanation and/or solution for this problem ?
Thanks in advance. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
Sri_Lumpa Smarty Rookie
Joined: 24 Apr 2003 Posts: 8 Location: Paris, FRANCE
|
Posted: Thu Apr 24, 2003 9:32 am Post subject: |
|
|
Thanks,
I didn't know the existance of "Alternative syntax for control structures".
So, the generated code is available.
I'm just wonder why the browser don't understand it (depends on its configuration).
I post a reply when/if I found the cause.
See u. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|