Common CRUD functions in PHP

后端 未结 8 1139
闹比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:34

    I know the way you feel.

    Pork.DbObject is a simple class that you can extend your objects from. It just needs a db connection class to work.

    please check out: www.schizofreend.nl/pork.dbobject/

    (oh yeah, yuk @ php object generator. bloat alert! who wants to have those custom functions in every class???)

    0 讨论(0)
  • 2020-12-28 11:34

    I think you should write your own functions that achieve CRUD unless you are stressed for time. it might be a framework on it's own but you need to learn what the framework does before screaming framework....it also becomes handy to know these things because you can easily pickup bugs on the framework and fix them your self........

    0 讨论(0)
提交回复
热议问题