Is there a way to share object between php pages?

后端 未结 5 1144
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 22:17

I am new to php, but in other web technologies, you can share objects between page instances. For example, in java jsp pages you easily have on class that exist as static cl

5条回答
  •  臣服心动
    2020-12-14 22:37

    An other horroble solution may be to load the data of the object to any $_SESSION variable and then user it back into the object of the other page. In fact, this is the solution I'm going to follow in my project, until I get some better one.

    Regards!

提交回复
热议问题