I've narrowed down the problem to CSRF protection which I don't need here
(it's just an autocomplete script). I am, however, unable to disable CSRF.
If I try $this->Security->csrfCheck = false; I get a fatal error about
unsetting string offsets:
Fatal error: Cannot unset string offsets in
...
I have discovered that the problem is with the Security component. If I
disable it, I can get my post data back.
I have already tried using validatePost=false but my requests are still
being blackholed. If I use requireSecure() then the requests are no longer
blackholed but instead the data is
I tried that but it comes up as an empty array. I checked the post data and
I have set data[query]=woolf which comes up in the transaction. I don't
understand why the data isn't present.
On Wednesday, 11 July 2012 05:53:42 UTC+1, dario gaston musante wrote:
>
> try with a var_dump( $this->reque
try with a var_dump( $this->request->data ); or a
debug($this->request->data);
El martes, 10 de julio de 2012 19:09:03 UTC-3, Gideon escribió:
>
> Hi all, I am trying to send ajax data to an autocomplete action
> /researchers/autocomplete.json. I have set data[query]=daniel but still I
> get nu
Hi all, I am trying to send ajax data to an autocomplete action
/researchers/autocomplete.json. I have set data[query]=daniel but still I
get null for $this->request->data('query') or anything else for that
matter. If anyone can help I'd be really appreciative.
--
Our newest site for the commu