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?
伊谢尔伦2017-05-16 13:05:30
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:
我想大声告诉你2017-05-16 13:05:30
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!
習慣沉默2017-05-16 13:05:30
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.