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

variable inside variable does not work ie. $lang.error in va

 
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
netmastan
Smarty Regular


Joined: 02 Jul 2004
Posts: 64

PostPosted: Sat Jan 15, 2005 6:37 am    Post subject: variable inside variable does not work ie. $lang.error in va Reply with quote

hi,
I have added language file to my script.
I am trying to the following thing, but its not displaying
Code:


{validate field="origin" criteria="notEmpty"  message="$lang.booking_error_origin"}



Even the following code is not working

Code:


{validate field="origin" criteria="notEmpty"  message="{$lang.booking_error_origin}"}



Anything i m missing..

Regards
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Sat Jan 15, 2005 4:22 pm    Post subject: Reply with quote

{validate field="origin" criteria="notEmpty" message=$lang.booking_error_origin}
Back to top
View user's profile Send private message Visit poster's website
netmastan
Smarty Regular


Joined: 02 Jul 2004
Posts: 64

PostPosted: Sat Jan 15, 2005 8:45 pm    Post subject: wow Reply with quote

Thank you man.
You are very helpful and fast in reply.

Regards
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