I'm starting developing with codeigniter and I'm doing some few basically things to learn it on localhost with easyphp (I get bug with WAMP Server).
I create the folder "libraries/js/jquery-1.9.0.min.js", and "views/templates/css/style.css" and simply in header I include the files:
<link type="text/css" href="application/views/templates/css/style.css" rel="stylesheet" />
<script type="text/javascript" src="application/libraries/js/jquery-1.9.0.min.js"></script>
And the server return to me the follow errors:
GET http://127.0.0.1:8887/CodeIgniter_2.1.3/application/libraries/js/jquery-1.9.0.min.js 403 (Forbidden)
GET http://127.0.0.1:8887/CodeIgniter_2.1.3/application/views/tamplates/css/style.css 403 (Forbidden)
I searched for info and can be a permission problem in the files, but never happened to me before... and in a remote server I can access by ftp and change the permission, but how can I do it on localhost? If thats the problem..
Thanks in advance!
i found a solution here:
Where do I put image files, css, js, etc. in Codeigniter?
All people put those kind of files outside the codeigniter framework, i make it and now it works.
Thanks for the help.
PD: Now im fighting with the helper creation :D
一点点谷歌搜索可能就足够了: 如何在Windows XP中设置,查看,更改或删除文件和文件夹的特殊权限 。
如果您正在使用macOS,只需右键单击您的js和css文件所在的文件夹,然后单击获取信息并勾选共享文件夹复选框。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.