Unable to get the front end template params in joomla user event plugin -


unable 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 errors current code, i'm sure following work have tested it:

$params = jfactory::getapplication()->gettemplate(true)->params; $variable = $params->get('logo');  echo $variable; 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -