Unable to get the template param of logo in onUserBeforeSave event plugin...
public function onUserBeforeSave($user, $isnew, $success, $msg){
$app = JFactory::getApplication();
$template = $app->getTemplate(true);
$params = $template->params;
$variable = $params->get('logo');
}
I'm not sure if you're getting any errors with your current code, however I'm sure the following will work as I have just tested it:
$params = JFactory::getApplication()->getTemplate(true)->params;
$variable = $params->get('logo');
echo $variable;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.