PhpFox 令人困惑的文件结构
我想知道如何修改特色会员模块的布局?我可以看到它的一部分位于文件中模块的模板文件夹中
module/user/template/<mytemplate>/block/featured.html.php
,而我在中找到的一部分
file/cache/template_user_template_default_block_fetaured.html.php
是否意味着我也需要在第二个文件中进行更改?如果是,那么它将反映所有主题。
谁能解释一下 PhpFox 文件和文件夹结构?
I am wondering how can I modify the layout of the featured members module? I can see that part of it is in the template folder of the module in file
module/user/template/<mytemplate>/block/featured.html.php
and some part I find in
file/cache/template_user_template_default_block_fetaured.html.php
Does that mean I need to make changes in this second file too? If yes then it will reflect on all themes.
Can anyone explain the PhpFox file and folder structure?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你直接改第一个就可以了
module/user/template//block/featured.html.php
第二个是缓存文件,如果您更改第一个,那么第二个也会更新,因为
第二个是从第一个生成的。
如果你想知道文件结构那么首先知道如何创建模块
只需转到此链接:http://www.phpfox.com/kb/article/144/creating-your-first-add-on/" phpfox.com/kb/article/144/creating-your-first-add-on/
更多:
http://www.phpfox.com/kb/article/263/知识库文章列表/
You just change the first one
module/user/template//block/featured.html.php
Second one is cached file, if you change first one then second one also be updated because
second one is generated from first one .
if you want to know the file structure then know how to create the module first
just go to this link : http://www.phpfox.com/kb/article/144/creating-your-first-add-on/
more :
http://www.phpfox.com/kb/article/263/knowledgebase-article-listing/
正如 SKG 提到的,第一个文件是原始文件,第二个文件是缓存文件。
但是,如果您修改第一个文件,则在您清除网站的缓存之前,第二个文件将不会更新。
您可以通过两种方式清除缓存。
As SKG mentioned, the first file is the original file and the second file is cached file.
But if you modify the first file, the second file will NOT be updated until you clear the chache of your website.
You can clear the cache in two ways.