![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
这是由于 smarty 配置的路径的问题吧 unable to read resource: "index.html"
我在本地测试成功的网站,传到服务器上(IIS)后,页面空白,提示错误Warning:Smartyerror:unabletoreadresource:"index.htm...
我在本地测试成功的网站,传到服务器上(IIS)后,页面空白,提示错误
Warning: Smarty error: unable to read resource: "index.html" in F:\web\by2.youyou.com\smarty\Smarty.class.php on line 1113
在smarty.class.php里的目录路径是这么写的:
var $template_dir = 'templates';
var $compile_dir = 'templates_c';
var $config_dir = 'configs';
我怀疑是路径的问题,那位高能出来指点迷津
很抱歉 现在分不够了 没发悬赏了~~ 展开
Warning: Smarty error: unable to read resource: "index.html" in F:\web\by2.youyou.com\smarty\Smarty.class.php on line 1113
在smarty.class.php里的目录路径是这么写的:
var $template_dir = 'templates';
var $compile_dir = 'templates_c';
var $config_dir = 'configs';
我怀疑是路径的问题,那位高能出来指点迷津
很抱歉 现在分不够了 没发悬赏了~~ 展开
1个回答
展开全部
在templates前面加上../还有templates_c 的前面加上../看看行不行
![](https://ecmb.bdimg.com/tam-ogel/5375e28ddd116d0db7ed381a06f574ad_60_60.png)
2023-06-12 广告
Linux 嵌入式系统中,USB 启动模式能够烧写 ARM 的 uboot 的原因主要有以下几个方面:1. USB 启动模式相对于传统的 BIOS 启动模式来说,具有更高的兼容性和灵活性,可以支持更多的硬件设备和操作系统。2. USB 启动...
点击进入详情页
本回答由浙江启扬智能科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询