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?