Home  >  Article  >  Backend Development  >  smarty模版做了一个网站,在wamp上运行正常,可是传到linux系统上,网站就出现找不到模版

smarty模版做了一个网站,在wamp上运行正常,可是传到linux系统上,网站就出现找不到模版

WBOY
WBOYOriginal
2016-06-13 13:19:55954browse

smarty模版做了一个网站,在wamp下运行正常,可是传到linux系统下,网站就出现找不到模版
传上去后出现了Fatal error: Class 'WebconfModel' not found in /data/home/hmu110016/htdocs/path.inc.php on line 5 而我用echo $_SERVER['DOCUMENT_ROOT']查出的路径是/usr/home/hmu110016/htocs 这要怎么修改啊。我在本地运行是正常的。急需解决啊

------解决方案--------------------
大小写
------解决方案--------------------
在 data/home/hmu110016/htdocs/path.inc.php 文件第八行调用 Model::select() 时,你没有给它传递参数。

而你定义的 Model::select() 是有参数的。

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