The data we store in each menu item object is an array containing only one element: the name of the category.
我们储存在每个菜单项对象中的数据是一个仅包含一个元素的数组:类别名。
So we need a persistence mechanism to store the new object data.
所以我们需要一个持续机制来存储新的对象数据。
Store the data object in the session: Because we are disconnected from the database, we need to store the contact data object in the session to make it available to the next page.
在会话中存储数据对象:由于我们已从数据库断开连接,因此需要将联系人数据对象存储在会话中,以便将它用于下一页。
应用推荐