I would like to ask if it’s possible to create HTML/CSS/JS code and put it in views and therefore not combining any PHP code with HTML which means that data transfer to backend PHP would be from GET/POST from JS?
But if it’s possible, is it a bad idea? Is the disadvantage of this is the fact that I cannot use zii widgets or etc?
Html and css (views) is already separated from code (controllers).
If you talking about something like building all the interface on client (ExtJS and so on) - yes, it’s also possible, and I’m pretty sure I’ve seen a couple of Yii connectors for that.
Personally I use knockout.js widely, so all the lists are rendered from observable arrays on client-side, and communication between client and server is done via json/ajax.