Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.


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 ?


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.


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?