2012-07-15 18 views

risposta

16

ho che questo potrebbe essere quello che stai cercando:

$app  = JFactory::getApplication(); 
$template = $app->getTemplate(true); 
$params  = $template->params; 
$variable = $params->get('variable'); 
+0

Grazie, che era esattamente quello che stavo cercando! –

+0

Solo una nota qui che $ template sembra essere usato altrove come variabile e quindi causa un errore. Sostituiscilo con un nome diverso e questo funziona ancora nell'ultimo Joomla. –

Problemi correlati