php - Is it possible to echo any variable inside JText::_ if so how -
is possible print variable inside jtext
ie:- need print $email test whether nil or has value in it...
$this->setmessage(jtext::_('com_users_registration_activate_success'));
the jtext class has static method '_' converts string argument passed into string, using language files , settings appropriate context. if want see being passed setmessage try:
echo 'debug setmessage argument: "'.jtext::_('com_users_registration_activate_success').'"';
if find reveals _ returning nothing, indication there not entry 'com_users_registration_activate_success' in language file(s) being used.
edit:
if need append $email
this:
$this->setmessage(jtext::_('com_users_registration_activate_success').$email);
Comments
Post a Comment