The front-end uses the PHP CI framework used by Vue and the back-end. How to develop the front-end and back-end together?
欢迎选择我的课程,让我们一起见证您的进步~~
According to our practice of conducting more than ten projects, we currently develop API interfaces on the back end, and use json specifications for front-end and back-end interaction. This is an added interface:
It’s very simple. For the PHP part, just write the interface, request Vue at the front end, and then render it in the template!
Method 1: The PHP backend provides an API interface (JSON data format), Vue is data-driven, and uses vue-resource to receive data for interaction.
Method 2: Introduce the Vue.js file into the CI view file.
According to our practice of conducting more than ten projects, we currently develop API interfaces on the back end, and use json specifications for front-end and back-end interaction.
This is an added interface:
It’s very simple. For the PHP part, just write the interface, request Vue at the front end, and then render it in the template!
Method 1: The PHP backend provides an API interface (JSON data format), Vue is data-driven, and uses vue-resource to receive data for interaction.
Method 2: Introduce the Vue.js file into the CI view file.