search

Home  >  Q&A  >  body text

javascript - The front-end uses vue and the back-end uses the php ci framework. How do the front-end and back-end cooperate in development?

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?

天蓬老师天蓬老师2780 days ago1375

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦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:

    reply
    0
  • 我想大声告诉你

    我想大声告诉你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!

    reply
    0
  • 習慣沉默

    習慣沉默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.

    reply
    0
  • Cancelreply