JQuery post parameters do not get to my controller |
Thanks a lot casa.
I've tried setting csrf_protection to false, but same result. Since this->post is still available in the model, I am retrieving all data and do processing in the model itself. The problem is that the parameters don't even reach that stage. $_POST is always empty at the start of the method: array(0) { } What I also don't understand is that even with csrf protection on, if I manually go to http://localhost/index.php/user_filters/create?name=aa from a browser, the following goes through fine: array(1) { ["name"]=> string(2) "aa" } Shouldn't this be csrf protected? Thanks. (04-06-2015, 10:53 AM)casa Wrote: Perhaps put in your config file $config['csrf_protection'] = FALSE; |
Welcome Guest, Not a member yet? Register Sign In |