|
做用户注册时出现了The action you have requested is not allowed.
请问,这个是什么问题呢?
我的模型:
function addadmin_ini(){
$name = $this->input->post('name');
$password = $this->input->post('password');
$data = array(
'name' => 'name' ,
'password' => 'password'
);
return $this->db->insert('admin', $data);
}
控制器: function addadmin(){
/*$this->load->model('Madmin');
$data['addadmin'] = $this->Madmin->addadmin();*/
$this->load->view('admin/AddAdmin');
}
function addadmin_ini(){
if (isset($_POST['submit_admin'])){
$this->load->model('Madmin');
$this->model->Madmin();
redirect('admin/addadmin_ini');
echo '111';
} else {
$this->load->view('admin/AddAdmin');
}
}
是哪个环节出问题了呢?希望各位大虾帮忙解决下 |
|