2

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

我如何从这里设置重定向到自定义 url?

4

1 回答 1

1

试试这个

$mainframe = JFactory::getApplication();
$redirct = 'your url';
$mainframe->redirect($redirct);
于 2012-10-08T08:08:04.247 回答