codeigniter form base_url can not find the route

-1
<form id="idlogin"  action="<?= base_url('login/ingresar'); ?>" method="post" role="form" >

Login is a controller class Login extends CI_Controller that has a function enter

function ingresar(){

        print_r($_POST);

        $usuario = $this->input->post("user_login");
        $passw = $this->input->post("pass_login");

The subject when I sent the information, I looked at the debugger and the post was done but look for the route link and do not link

That is, it does not go to the controller. Why is it that I have the base_url right?

    
asked by esteban cuezzo 24.12.2018 в 16:27
source

1 answer

0

I already solved it

  

Select URIs can be whitelisted from csrf protection (for example API   endpoints expecting externally POSTed content). You can add these URIs   by editing the 'csrf_exclude_uris' config parameter:

     

$ config ['csrf_exclude_uris'] = array ('api / person / add');

    
answered by 24.12.2018 в 18:00