Common CRUD functions in PHP

后端 未结 8 1172
闹比i
闹比i 2020-12-28 10:48

Is there a simple way to write a common function for each of the CRUD (create, retreive, update, delete) operations in PHP WITHOUT using any framew

8条回答
  •  遥遥无期
    2020-12-28 11:16

    Of course not, that's why those frameworks exist and implement crud facilities. I'd first try to convince whomever it takes to actually use an existing framework and second, failing the above, I'd take a look at one or two of them and copy the implementation ideas. Failing all that you could take a look at http://www.phpobjectgenerator.com/

提交回复
热议问题