Flip - 2012-08-03 21:38:05
Hi,
I have a question regarding the smarty template behaviour in form templates (which run through prefilter.form.php).
Is it true that some standard smarty functionality does not work anymore?
{if 'a'=='a'}What's happening?{/if}
In a little test case i made the {if}{/if} tags don't seem to be working. (if anyone want i could make a testcase that i can upload somewhere).
When looking at the prefilter.form.php code i see that a regular expression search is being done at some tags: include|include_php|if|else|elseif.
I don't quite understand the regular expression being done, but from what i do understand is that they are being replaced.
This could be my mistake and limited understanding, just i'd like a second opinion because if this is true then it means that a lot of smarty template engine features are not available within the part of the HTML form. Which would require me to find a big workaround (making multiple form templates sticked together maybe?) or i will have to drop either smarty or forms generation & validation class. Which would be a shame since i'm already heavily incorperating the two packages into my project.
Thanks for the help