用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1477|回复: 2
收起左侧

[版本 2.x] 求助 加载img时报权限拒绝

[复制链接]
发表于 2016-9-15 16:03:09 | 显示全部楼层 |阅读模式
PHP复制代码
  |
*/
$config['base_url'] = 'http://localhost/CI/';
 
复制代码

HTML复制代码
 
        <img src="<?php echo base_url('application/views/images/ecshop_logo.gif')?>"" alt="ECSHOP - power for e-commerce" />
 
复制代码


PHP复制代码
 
[b]Access forbidden![/b][align=left][color=rgb(0, 0, 0)][font=Simsun][size=3]You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403localhost
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.21
复制代码

 楼主| 发表于 2016-9-15 18:37:13 | 显示全部楼层
+11111111111111111
发表于 2016-9-15 21:59:01 | 显示全部楼层
不要把图片等放到 application 目录下,放到 index.php 所在目录下

本版积分规则