#1 dongxu0139
使用wamp在win7下部署成功运行的系统,拷贝到win10系统下,访问首页http://localhost/lh/index.php?c=main&a=login,出现页面空白,查看网络请求无报错,跟踪发现执行到了controller/main.php里的login方法中的$this->display("index/main_login.html"),
后续执行到了spController.php的display方法,然后是spView.php的display方法,然后是Smarty.class.php的display方法,然后就没有然后了,
spConfig.php中数据库配置没问题,'mode' => 'debug'设为调试模式,并打开'debugging' => TRUE,效果见下面的提示信息,我没看出来什么问题,
另外搜了论坛看了文档,有人提到是文件夹没有写权限,我看了下win10系统的wamp/www/lh文件夹确实是只读权限,搜了一圈百度也没试出怎么改回可写,今天搞了一天都没解决,难道要换系统?
Smarty Debug Console - Total Time 0.00572included templates & config files (load time in seconds) E:\software\wamp\www\lh/tpl\index/main_login.html (compile 0.00000) (render 0.00015) (cache 0.00000)
assigned template variables[table]
[tr] [td]$SCRIPT_NAME[/td] [td]Smarty_Variable Object (3)
->value = "/lh/index.php"
->nocache = false
->scope = "Global"[/td][/tr]
[/table]assigned config file variables (outer template scope)
2017-10-09 18:41:07