【发布时间】:2012-10-20 02:15:23
【问题描述】:
我有一个简单的 Joomla 控制器,但我无法重定向任何东西。
根据文档:
class MyController extends MyBaseController {
function import() {
$link = JRoute::_('index.php?option=com_foo&ctrl=bar');
$this->setRedirect($link);
}
}
//The url contains & html escaped character instead of "&"
这应该可以,但是我得到了一个格式错误的 URL。我在这里缺少什么吗?为什么Joomla 将所有的“&”字符转换为&'s?我应该如何使用 setRedirect?
谢谢
【问题讨论】:
标签: redirect joomla joomla2.5 joomla-extensions