Common CRUD functions in PHP

后端 未结 8 1184
闹比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???)

提交回复
热议问题