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

AJAX

I'm trying to do a console.log of simple data but I just can't from what I searched. Can anyone give me a little example of how to?

What do you want to do exaclty ?



33.8k

A simple login. The problem is that AJAX only sends me the index view of the index controller (and I'm using another controller for the login). I think I'll be OK if I can know exactly how to request and responde with AJAX.



33.8k

Very excellent examples Phalcon! I think the problem was using $response = $this->response;, instead of using $response = new Phalcon\Http\Response();. Another question is; why in other tutorials I've read they disable the view?