📜  joomla 重定向 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:11.787000             🧑  作者: Mango

代码示例1
$app = JFactory::getApplication();

$app->enqueueMessage('Redirect to another page was successful', 'success');
$app->redirect(JRoute::_('index.php'));

//or

$app = JFactory::getApplication();
$app->redirect("'http://google.com'");