We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Problems with ACL

I have two controllers: each of theses have an AJAX action. In the ACL, I don't allow access to anyone of these actions.

For the first action, this works, but for the second no. Their code is like:

$this->view->disable();

$request = $this->request;

if($request->isPost() === true)
{
    // Create a response, set it, return it.
}

And in the second action $request->isPost() is false. I just have skipped something?



2.5k

Can you post the AJAX calls from your javascript?



33.8k

No, I mean when you write in the navigation bar (URL), not in AJAX (they work perfectly there).