Home > Article > Backend Development > javascript - Why doesn't PHP framework use requirejs or seajs?
For example, when I look at frameworks such as ThinkPHP, Yii, and CI, they don’t seem to consider using JS modular frameworks. Why is this?
Because recently the company is developing a new project, which is a platform. I originally maintained a framework written by a previous programmer, which used seajs. I feel that using this modularization is good, and the speed seems to have improved. .
Can anyone please give me the answer? Thank you
This question has been closed, reason: Unable to obtain exact result
For example, when I look at frameworks such as ThinkPHP, Yii, and CI, they don’t seem to consider using JS modular frameworks. Why is this?
Because recently the company is developing a new project, which is a platform. I originally maintained a framework written by a previous programmer, which used seajs. I feel that using this modularization is good, and the speed seems to have improved. .
Can anyone please give me the answer? Thank you
The php framework is a back-end framework, and the seajs requirejs you mentioned are both front-end categories, which are completely different. .
php has its own module system. And what is the relationship between php and js modular framework?
By the way, what JS module loader do you use, and what does it have to do with the PHP framework? There is no necessary connection between the two. seajs and requirejs do not depend on the PHP framework.
What does the PHP backend have to do with your front-end framework?
The frameworks used for front-end and back-end are completely different things.