調用函數笨2.1 __construct
public function index()
{
$this->admin_login_check();
$data['title'] = 'Početna | TOP';
$data['main_content'] = 'admin_home';
$data= $this->data + $data;
$this->load->view('admin/admin_template', $data);
}
public function admin_login()
{
$data['title'] = 'Prijava | TOP';
$data['main_content'] = 'admin_login';
$data= $this->data + $data;
$this->load->view('admin/admin_template', $data);
}
當我$this->admin_login_check()
裏面__construct
功能我得到以下錯誤:
The web page at xxx/admin/admin_login has resulted in too many redirects.
你離開了這個錯誤嗎? – Neal
你忘了粘貼錯誤 – m4t1t0
對不起。增加了錯誤。 – Sasha