在Joomla 2.5中访问组件模板中模板参数的正确方法是什么?

Joomla的早期版本有一些实现,但2.5则没有。
http://forum.joomla.org/viewtopic.php?p=2166990#p2166903

最佳答案

我认为这可能是您要寻找的东西:

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

关于Joomla 2.5,访问组件模板中的模板参数,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11493168/

10-11 01:11
查看更多