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 你理解错了。 $this->isEnabledStaffs()这个方法在 https://gitee.com/zouhongzhao/magento2-action-extension-de ...

https://gitee.com/zouhongzhao/magento2-action-extension-demo/blob/master/Demo/view/frontend/templates/physical_stores.phtml#L67
那好像没必要把$this->isEnabledStaffs()这个判断放在foreach里面。

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