登录后Joomla重定向

时间:2012-10-08 07:49:58

标签: authentication redirect joomla joomla2.5

我使用onUserAuthenticate事件帮助为Joomla 2.5编写了一个小授权插件(类)。它看起来像:

class plgauthenticationAuth extends JPlugin{

    public function plgauthenticationAuth($subject, $config){
        parent::__construct($subject,$config);
    }

    public function onUserAuthenticate($credentials, $options, $response){
//my code

从这里开始如何设置重定向到自定义网址?

1 个答案:

答案 0 :(得分:1)

尝试这个

$mainframe = JFactory::getApplication();
$redirct = 'your url';
$mainframe->redirect($redirct);