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

[SmartyValidate] Documentation request for set_page

 
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
Snover
Smarty n00b


Joined: 16 Aug 2006
Posts: 2

PostPosted: Wed Jul 04, 2007 5:42 am    Post subject: [SmartyValidate] Documentation request for set_page Reply with quote

Hi,

It would be great if the documentation for set_page could be updated. It currently says:

Quote:
When doing multi-page forms, this value must be set proir to drawing each page. Each validator must have a page="1" attribute for the given page.


This is wrong (or at the very least, misleading) and I just wasted a few hours tonight figuring that out the hard way. Smile This would be a much better way of putting it:

Quote:
When creating multi-page forms, you must call SmartyValidate::set_page the FIRST TIME you display a new page. Calling set_page again will cause the validator to reinitialise that page.


I also don't see anything actually using the page parameter on the Smarty validate function. It doesn't harm anything to have it there, but is it really required?

Cheers,
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