Magento2的Model是如何进行CURD的?

8.54K 浏览M2交流区

Magento2的Model是如何进行CURD的?

https://gitee.com/zouhongzhao/magento2-action-extension-demo/blob/master/Demo/Block/PhysicalStores.php

有谁知道这个demo/physicalstores/enabled的值是侟在哪张表里面?

0

admin core_config_data表里

多谢。

但是看模板文件:
https://gitee.com/zouhongzhao/magento2-action-extension-demo/blob/master/Demo/view/frontend/templates/physical_stores.phtml

isEnabledStaffs(), 感觉是应该对应到physical_stores表的  status 字段?
意思是看这个店铺的状态?
若是存在core_config_data,显然是应该放在foreach 循环外面。

0
您正在查看6个回答中的1个,单击此处查看所有回答。