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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -