html5首页怎么修改?

文档问题 · freetiger · 于 6年前 发布 · 2535 次阅读

想修改html5首页,是不是先在后台建静态块,然后去"\fecshop\vendor\fancyecommerce\fecshop\app\apphtml5\theme\base\html5\cms\home\index.php"调用?

共收到 4 条回复
freetiger#16年前 0 个赞

文档中举例说在代码中调用“Yii::$service->cms->staticblock->getStoreContentByIdentify('home-big-img','appfront')” 不清楚这个代码指哪个文件

Fecmall#26年前 0 个赞

http://www.fecshop.com/doc/fecshop-guide/instructions/cn-1.0/guide-fecshop_static_block.html

你仔细看文档,说的很明白还有图

后台创建静态块,有一个identity,如果填写 home-big-img,那么就用

Yii::$service->cms->staticblock->getStoreContentByIdentify('home-big-img','appfront')

在参数里面写 home-big-img

这是一个看文档一目了然的问题。

Fecmall#36年前 0 个赞

可能,你没有看帮助文档,帮助文档多看看,最好先顺一遍文档,出了问题,心里有谱。

Fecmall#46年前 0 个赞

另外,对于这个函数

Yii::$service->cms->staticblock->getStoreContentByIdentify('home-big-img','appfront')

你不知道是干啥的,你不会去去cms staticblock service的函数 getStoreContentByIdentify 吗? 就是这个代码:https://github.com/fecshop/yii2_fecshop/blob/master/services/cms/StaticBlock.php 里面有这个函数,看看函数实现不就清楚了吗?

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics