Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Does Smarty compile SmartyValidate form elements?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
timmerk
Smarty Regular


Joined: 06 Mar 2005
Posts: 36

PostPosted: Sun Mar 06, 2005 11:20 am    Post subject: Does Smarty compile SmartyValidate form elements? Reply with quote

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
View user's profile Send private message
vego
Smarty Rookie


Joined: 24 Feb 2005
Posts: 23

PostPosted: Sun Mar 06, 2005 4:43 pm    Post subject: Re: Does Smarty compile SmartyValidate form elements? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP