Home  >  Article  >  Backend Development  >  当html被smarty的display调用时,展示全是乱的

当html被smarty的display调用时,展示全是乱的

WBOY
WBOYOriginal
2016-06-13 12:27:19922browse

当html被smarty的display调用时,显示全是乱的,
当html被smarty的display调用时,显示全是乱的,
并且html单独打开时正常,
admin.php调用html.两者没有在同一目录,
当html post的时候发现自身的目录变成了admin.php的目录,从而显示接受post的文件不存在,

------解决思路----------------------
因为你的admin_login.html 是编码,所以出现了乱码。

至于提交时出现了404应该是你的form的action的路径没写对。
------解决思路----------------------
因为你的admin_login.html 是gbk编码,所以出现了乱码。
------解决思路----------------------
你需要检查和修改一个表单的action,贴出你的代码看看
------解决思路----------------------
1、你没有告知是什么样的乱码
2、#2 的截图中 url 显然是多了一级 admin
3、没有看到 smarty 要求的工作目录的设定
4、模板文件为何不在 smarty 要求的工作目录中?

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