You are very right about this. I would love to see all those ajax tools and widgets like in Yii2.
More stuff out of the box is nice, but right now is more important to make phalcon work properly with all db connectors

What you mean ? Phalcon is very json&ajax friendly. I don't know how you want to connect both, one is server side second is frontend, i don't see any connection. It's to developer how he is connecting to his backend and vice versa.

@Wojciech if you take a look on Yii2 you can extend it with extensions and widgets, giving you these connections out of the box without having to do it yourself. Is something nice to have, but not such a big deal.

What you mean ? Phalcon is very json&ajax friendly. I don't know how you want to connect both, one is server side second is frontend, i don't see any connection. It's to developer how he is connecting to his backend and vice versa.

For Example:

When We would create an app that it is a form , Submiting by ajax & we will return errors,messages,flash-messages as a JSON string & We have many problems for Dev This.

To bypass this, I created an JSONResponse. Every exception (this includes model validation messages) are incorporated to this return. Pretty easy to do, but not out of the box...

connect to Javascript frameworks (.e.g EmberJs,AngularJs,reactJs...)

What you mean ? Phalcon is very json&ajax friendly. I don't know how you want to connect both, one is server side second is frontend, i don't see any connection. It's to developer how he is connecting to his backend and vice versa.

For Example:

When We would create an app that it is a form , Submiting by ajax & we will return errors,messages,flash-messages as a JSON string & We have many problems for Dev This.

My output format may be different from your output format though, and the example here means repeating this code all over the place, which means it's better off as a service, which is a class that you add stuff to, then implement toArray(), toJson().

In Phalcon 2.0.x you still need to set "Content-Type" HTTP header to application/json.
setJsonContent() method is just a wrapper around PHP json_encode, thus it will accept any arguments or flags like JSON_NUMERIC_CHECK etc.

I always tend to use this method, since it gives better overall framework-like style to an application.