在文档里面没有看到,问题是这样的,我现在需要在appadmin渲染的模板中链接到appfront前台的产品中去,比如前台地址是appfront.xxx.com,就是一开始安装的那个域名,在service里只有获取当前入口getCurrentAppName。该如何获取呢
1.store domain信息存储在mysql表store_domain
store_domain
2.对应的service是:https://github.com/fecshop/yii2_fecshop/blob/master/services/StoreDomain.php#L103
3.通过方法:
$app_name = 'appfront'; Yii::$service->storeDomain->getCollByAppName($app_name);
获取到appfront的store配置列表
感谢!