When I learned thinkphp, I always followed the video MVC front-end static template and CURD. I think this is how it should be developed.
One day, I came into contact with vue. Some people said that vue thinkphp is the mainstream. After learning vue, I felt something was wrong. MVVM and MVC seemed to conflict.
After looking it up, I still can’t figure it out. I feel like only you can solve this pain.
Ask the teacher:
1. If we use thinkphp to develop websites, is it mainstream to use vue? Or bootstrap, layu, etc.?
2. I definitely use thinkphp for back-end development. When I want to make a simple front-end template (front-end and back-end), what should I use?
We are looking forward to the reply from Mr. Zhu from Tianpeng University, thank you!
猪老湿2021-06-10 21:48:28
The MVVM idea also comes from MVC;
Using the MVVM model, the back-end function is relatively simple and does not require a VIEM layer. It only needs to respond to interface data requests to meet the separation of front-end and back-end development.
All this is based on the premise that the front-end (client) has excess performance and can take on more server-side functions.
豆花泡馍2021-06-08 10:39:58
When we talk about thinkphp in practice in our video, there are ready-made templates, which can be integrated. If I develop it myself, there will be no templates, which is very uncomfortable.
I was looking for a template, so I was taken to vue and learned element ui.
I feel like I am going further and further down the wrong path. . . be lost