dsuikgi9199 2018-07-31 01:12
浏览 46

在多个视图中重用表单

I am starting a new project and I have a few decisions to make in regards to user submitted forms. I will be using the PHP Laravel framework for this project. Here is a quick rundown of where forms can be submitted from:

  • Frontend (consumer facing) portion of the website
  • The customer's "My Account" portal
  • Our internal custom CRM that customer service reps can use to take orders

There are approximately 20 different services that we offer. And I would like for all of our services to be available for purchase from the 3 different locations listed above. Also, a quick note, all 3 locations have different UIs. Here is what I would like to achieve if possible:

  • I do not want to manually/hard code the HTML form inputs for all 20 services for the 3 locations above
  • It would be ideal if I could call an internal API (or some other method) which would provide me the form structure/steps/inputs and I could parse that and build the form according to the UI of where it will be placed

This is a theory I have always wanted to attempt but I am just not sure if this is the way professionals would do it.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题