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

smarty tag in {validate} field

 
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 -> General
View previous topic :: View next topic  
Author Message
conrad10781
Smarty n00b


Joined: 24 Jun 2006
Posts: 4

PostPosted: Sat Jun 24, 2006 9:36 pm    Post subject: smarty tag in {validate} field Reply with quote

I am using the stock SmartyValidate function with a twist.. I am passing array's into the normal statements to create the data on the fly, and all is working perfect, except a small issue I am having in the .tpl...

in the tpl in a proper {section} I have the code (amongst other code)

Code:

{validate id="{$form_object[a].validation_name}" message="{$form_object[a].validation_message}"}</font>


If I take those variables outside of the {validate they print perfect... So my question is is there something in particular I have to do to put a {$smarty tag within a {validate?

By the way the above code just prints

Code:
Warning: Smarty error: validate: validator id '{Array.validation_name' is not registered. in
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 -> General 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