Action you have requested is not allowed error

后端 未结 11 1822
清酒与你
清酒与你 2020-12-06 06:05

I made a module named Gallery which works fine on my localhost with version 2.0.3, but when using version 2.1.0 on a remote site I can not submit a form and I get the error:

11条回答
  •  甜味超标
    2020-12-06 07:07

    For me the problem was that I was loading the view in the index, than I changed as follow and it worked:

    public function index()
    {
        // Load Login Page
        redirect('login/login_page','refresh');
    
    }
    
    public function login_page()
    {
        $data['title'] = 'Login Page';
    
        $this->load->view('templates/header', $data);
        $this->load->view('users/login_view', $data);
        $this->load->view('templates/footer');
    }
    

提交回复
热议问题