问题描述
我使用收集工厂从(Magento \ Catalog \ Model \ ResourceModel \ Product \ CollectionFactory)中获取产品数据。然后将这些数据逐块传递到模板中。数据已成功提取,但是当我尝试通过
进行编辑时<a href="<?= $this->getUrl('catalog/product/edit/id/'.$value['entity_id']) ?>">Edit</a>
我要这个网址链接
http:// localhost / magento2 / admin / catalog / product / edit / id / 1 / key / bfe08a05118e8a063718ecf5804669494dca697b13782ee7a074d9f42344d28a /
但是我越来越喜欢 http:// localhost / magento2 / admin / catalog / product / edit / key / bfe08a05118e8a063718ecf5804669494dca697b13782ee7a074d9f42344d28a /
您可以看到我的链接在编辑和键之间没有任何ID。 我想我缺少了一些东西。请帮忙
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)