What Javascript Framework May Work With Yii?

hi, in addition to ExtJS, is there any other JavaScript framework may work with Yii? I tried AngularJS, and I don’t think it is a fit to Yii, unless we only write pure html, which I don’t agree to be a good fit.

Any other one? Anyone tried KnockoutJS? Ember? Breeze? Backbone?..

I guess it really depends on what you want to do…

Mostly, with JS frameworks, one writes indeed a full fledged (but one-page only) HTML file. Of course you can use (server side) partials to keep some organization, but it stays a one page approach. Then, for server communication, you basically can use whatever framework you see fit, and I think Yii fits perfectly in that case.

I wouldn’t say one JS framework would fit better than another.

Any JavaScript framework is OK to use with Yii.

Thanks for your feedback.

I have another related question. Javascript framework may implement the web site from client side. That is to say, we still need the web server side to do database access, storing shared files, send emails, etc. What should be the best protocols to communicate with web server?

1.ajax

2.soap

3.restful api

I think restful api should be more up to date or formal approach. However, by looking at Yii document, it looks quite complicated to implement restful apis. Any recommendations?

REST. It’s not that complicated http://stuff.cebe.cc/yii2docs/guide-rest.html