1
votes

I use YII widgets for making my views and rely on CGridView, CLiStData, CHtml classes.. I often see comparison online between client side MV* frameworks like Ember, backbone .. and then I use jquery in YII for adding all interactivity. But, the views are being made from widgets.

So, My question is YII a server side HTML rendering framework ?

1
Yes, you might say that HTML rendering is purpose of Yii... - Ivo Renkema
There is a YII extension to help create a rest api also - Joe

1 Answers

1
votes

Yes. Really, what's the question about?

If you ask if Yii can cooperate with some MVVM (Model-View-View-Model) library, like knockout or backbone then answer is yes and no. As generally Yii generates widgets as static HMTL, somewhat enchanced with jQuery. For trully MVVM widgets, you have to make them by your own. Most common case is CActiveForm, to make form bindable to view model.

Personally I use knockoutjs wih yii and made quick and dirty patched version of CActiveFrom (strictly Im using TbActiveForm from YiiBooster, but thats not important here) to add bindings and it works fine.

Isn't it similar question to Yii and Knockout Together?