ibiza420 Posted November 19, 2010 Share Posted November 19, 2010 Hello, I am trying to use this line in a .tpl file to do a small check and I want to change a variable to some value :{if ($cookie->id_lang == 2) $fl_lang = 'fr_FR' }However the syntax seems invalid, could anyone show me the correct way to do this please? Link to comment Share on other sites More sharing options...
rocky Posted November 26, 2010 Share Posted November 26, 2010 Try: {if $cookie->id_lang == 2}{assign var='fl_lang' value='fr_FR'}{/if} Link to comment Share on other sites More sharing options...
ibiza420 Posted November 26, 2010 Author Share Posted November 26, 2010 thanks for the reply, I'll look into this! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now