假设我有一个控制器,它有两个方法,我想从 method1 重定向到 method2,但由于以下错误,这是不可能的:
铬合金:Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
火狐:The page isn't redirecting properly
我怎样才能解决这个问题?
class Site extends CI_Controller {
function method1() {
{ ... Some Code ... }
redirect('site/method2');
}
function method2() {
{ ... Rest of the code ... }
}
}