Answer the question
In order to leave comments, you need to log in
JS framework and YII?
For a couple of years I have been developing projects of varying complexity. I use Yii as my main tool.
As you know, YII uses jquery. If the project needs to do something more complex than an ajax button, you have to write a lot of noodle code. I get even more mad when I need to process various server states, data validations, various alerts, etc. I look at this case and understand that it is not beautiful.
Therefore, I ask for help with choosing a JS framework for my requirements:
1. Routing and all logic with data should remain in Yii.
2. Yii accepts POST, GET requests and returns JSON
3. JS lib must be able to work with the DOM, receive data from the server, help write interfaces
Googled a lot of JS frameworks (Angular, ReactJS, Polymer, Backbone, Knockout, etc.) and didn't pick up anything.
Answer the question
In order to leave comments, you need to log in
Everything that you wrote in the requirements - jquery handles it quite successfully. Maybe you should improve your knowledge in it and learn how to write beautiful components?
At least it is not reasonable to blame Yii on another js lib, for one simple reason - all third-party libs use jquery. Whatever you include, it uses jquery. To dump it means to throw away all these ready-made solutions and write "your" bike.
And so try Dojo, Zend, for example, is very attached to it.
Or MooTools, I used to like the generation of html with a js event garter in it.
I myself was looking for something similar - a light js-libu for just your requirements. I came across pure.js beebole.com/pure but haven't had a chance to try it yet.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question