I need to assign value for smarty var but it need to be mixed with some html or text
like
{assign var="heading1" value='Hello $user <a href="#">logout</a>'}
HTML works but the $user variable does not.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to embed your PHP variable, you must use double quotes in
smarty.For instance:
should concatenate $user for you.