Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 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');