PHPcms首页模板修改无效
2022-08-03 09:57:03
82
{{single.collect_count}}

按照约定默认情况phpcms/templates/default/content/index.html下是首页模板的位置,但是改了N多遍,然后去后台不断刷新,千呼万唤就是不出来啊,急死人啊。

最终想到了权限的问题,于是查看下根目录的caches目录,果然不具有写权限,给个777再次修改,去后台生成首页看到结果了。


后来跟据这个问题去bing搜了下,还有另外的方法,就是重写write_cache函数。

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}