|
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 |
timmerk Smarty Regular
Joined: 06 Mar 2005 Posts: 36
|
Posted: Sun Mar 06, 2005 11:20 am Post subject: Does Smarty compile SmartyValidate form elements? |
|
|
Hi,
Sorry, but I am new to Smarty and SmartyValidate. I was wondering when Smarty compiles the template files, if Smarty keeps the actual form element html in the compiled version?
I ask because I am looking for a form validation solution, and things such as HTML Quick_Form that draws the elements programatically takes a lot of overhead, hence is much slower. Would using SmartyValidate be much faster?
Thanks! |
|
Back to top |
|
vego Smarty Rookie
Joined: 24 Feb 2005 Posts: 23
|
Posted: Sun Mar 06, 2005 4:43 pm Post subject: Re: Does Smarty compile SmartyValidate form elements? |
|
|
In my experience, smarty+smartyvalidate is much faster than QF.
I started out using QF as a tool for quickly generating application prototypes. However once I wanted to customise the output generated by QF with renderers, I found out that its speed was getting unacceptable. (I was using QF with smarty as renderer).
For now will remove QF and resort to using smarty+smartyvalidate alone.
I don't think it's an optimal solution, because using smartyvalidate means that the validation logic is moved to the template, which is kind of awkward, as the template should only contain display logic.
But it is much faster, as the html form elements will not have to be generated by QF each time the page displays |
|
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
|