我使用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
从这里开始如何设置重定向到自定义网址?
答案 0 :(得分:1)
尝试这个
$mainframe = JFactory::getApplication();
$redirct = 'your url';
$mainframe->redirect($redirct);