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 3 的全局选项 SEF?找了一整天都没找到。这适用于 Joomla 1.5 需要在 3 日相同
$config =& JFactory::getConfig(); echo 'Site name is ' . $config->getValue( 'config.sitename' );
在 Joomla 3.x 中,JRegistry::getValue()已删除,因此请JRegistry::get()改用。
JRegistry::getValue()
JRegistry::get()
简而言之,这是您需要使用的代码:
$config = JFactory::getConfig(); echo 'Site name is ' . $config->get( 'sitename' );