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] unrecognized tag 'validate'

 
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
LHD
Smarty Rookie


Joined: 04 Feb 2005
Posts: 8

PostPosted: Wed Feb 16, 2005 4:52 am    Post subject: [SmartyValidate] unrecognized tag 'validate' Reply with quote

I am using smarty, it works fine.
But I tried to use the SmartyValidate example.
But it did not work :

Code:
Fatal error: Smarty error: [in /home/.[]./Smarty/templates/form.tpl line 2]: syntax error: unrecognized tag 'validate' (Smarty_Compiler.class.php, line 576) in /home/.[]./Smarty/libs/Smarty.class.php on line 1088


Any suggestons and help?

Thanks
Lars
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Feb 16, 2005 2:19 pm    Post subject: Reply with quote

did you install the SmartyValidate plugins?
Back to top
View user's profile Send private message Visit poster's website
LHD
Smarty Rookie


Joined: 04 Feb 2005
Posts: 8

PostPosted: Wed Feb 16, 2005 3:10 pm    Post subject: Reply with quote

Of course I installed "SmartyValidate.class.php" in my include path and put the "validate_criteria.*.php" files in smarty/libs/plugins

I did install everything according to http://www.phpinsider.com/php/code/SmartyValidate/

My other smarty pages (SmartyML.class.php) all work

SmartyValidate only throws this error message if I use this {validate .... } tag.

I don't know what my problem is.
Do I have to make a $smarty->register.... ????

Thank you for your help!
Lars
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Feb 16, 2005 3:26 pm    Post subject: Reply with quote

You must be missing the "function.validate.php" file in the plugin directory. Not all the plugins are named "validate_criteria.*"
Back to top
View user's profile Send private message Visit poster's website
LHD
Smarty Rookie


Joined: 04 Feb 2005
Posts: 8

PostPosted: Wed Feb 16, 2005 3:42 pm    Post subject: Reply with quote

Thank You!
You are a genius!

It's working now!
I missed copying these files into the plugin directory!

Thank you very much.

Lars
Back to top
View user's profile Send private message Visit poster's website
LHD
Smarty Rookie


Joined: 04 Feb 2005
Posts: 8

PostPosted: Wed Feb 16, 2005 4:27 pm    Post subject: Reply with quote

BTW what is the effect/syntax of "=&" in

$smarty =& new Smarty; ?

Thank you

Lars
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Feb 16, 2005 5:45 pm    Post subject: Reply with quote

Quote:
BTW what is the effect/syntax of "=&" in


@LHD: See Chapter 21 of the PHP manual
Back to top
View user's profile Send private message
LHD
Smarty Rookie


Joined: 04 Feb 2005
Posts: 8

PostPosted: Wed Feb 16, 2005 5:55 pm    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message Visit poster's website
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