Is it possible to print a variable inside the JText
ie:- i need to print $email to test whether it is nil or has value in it…
$this->setMessage(JText::_('COM_USERS_REGISTRATION_ACTIVATE_SUCCESS'));
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.
The JText class has a static method ‘_’ which converts the string argument passed into it into another string, using the language files and settings appropriate for the context. If you want to see what is being passed to setMessage you could just try:
If you find that this reveals that _ is returning nothing, then it is likely an indication that there is not an entry for ‘COM_USERS_REGISTRATION_ACTIVATE_SUCCESS’ in the language file(s) being used.
EDIT:
If you need to append
$emailthen just do this: