Home  >  Article  >  Backend Development  >  求大神来解决codeigniter框架里面ajax调用php不允许访问的有关问题

求大神来解决codeigniter框架里面ajax调用php不允许访问的有关问题

WBOY
WBOYOriginal
2016-06-13 11:50:37958browse

求大神来解决codeigniter框架里面ajax调用php不允许访问的问题
views文件夹里面的loginView.html引用js文件夹里面的base.js.
调用php函数的ajax在base.js里面。目录结构和代码如下:

用谷歌浏览器调试报错:
failed to load resource :the server responded with status of 403 (Forbidden) 后面地址为
http://127.0.0.1:8088/teamlogging/application/controllers/Login.php/LoginActive?username=001&password=wl
点击这个地址出现提示如下

不知道为什么会报这样的错误,求大神指点。
------解决方案--------------------

var url = "index.php/login"

------解决方案--------------------
var url = "application/controllers/Login.php";

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn