CI框架 wamp环境在载入视图html文件中的js不能正常载入 显示403 求解决办法

github_39786577 2017-08-09 02:38:04
初学CI框架,在载入视图中步骤中,html文件正常载入,但外链的CSS和JS不能正常加载。
菜单栏框架举例,检查框架源码时
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title></title>
<link href="http://localhost/cishop/application/views/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<link href="http://localhost/cishop/application/views/js/global.js" rel="stylesheet" type="text/css" />"></script>
<script type="text/javascript" src="http://localhost/cishop/application/views/js/utils.js"></script>
<script type="text/javascript" src="http://localhost/cishop/application/views/js/transport.js"></script>
<style type="text/css">
body {background: #80BDCB;}

点击上面的JS链接后
会显示
You don't have permission to access /cishop/application/views/js/transport.js on this server.

Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80


尝试了一些配置wamp方法但没能解决。
希望大神指条明路,谢谢~
...全文
385 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
github_39786577 2017-08-16
  • 打赏
  • 举报
回复
引用 1楼hongmei85 的回复:
http://www.bubuko.com/infodetail-248816.html 看看views、application这些文件夹下有无.htaccess文件
是有的。由于CI框架的权限问题,把文件路径改了之后就好了,谢谢
hongmei85 2017-08-09
  • 打赏
  • 举报
回复
http://www.bubuko.com/infodetail-248816.html 看看views、application这些文件夹下有无.htaccess文件

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧