Home >Backend Development >PHP Tutorial >discuz二次开发,diy不能保存的有关问题

discuz二次开发,diy不能保存的有关问题

WBOY
WBOYOriginal
2016-06-13 09:58:501476browse

discuz二次开发,diy不能保存的问题。
为discuz论坛添加一个新页面。弄完以后可以进行diy,但点“保存”后,diy的内容在页面上不显示出来。不知是什么原因。

麻烦各位高人了。我原来做java的,临时被弄来搞discuz,快被搞死了。谢谢各位了。


php文件。user_wall.php

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpif (!defined('IN_DISCUZ')) {    exit('Access Denied');}include template('diy:my/user_wall');?>



模板文件。user_wall.html
PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->{subtemplate common/header}<div id="diy1" class="area"></div>{subtemplate common/footer}


------解决方案--------------------
看不懂啊!!!!!!( ⊙ o ⊙ )啊!
------解决方案--------------------
在include template()前面加一句:
loadcache('diytemplatename');
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn