In the framework of codeigniterx, the loginview.html in the viewsfolder of php cannot be used to reference the base. js in the js folder. ajax that calls the php function is in the base. js folder. The directory structure and code are as follows: Google browser debugging reports error: failed & nbsp; to & nbsp; load & nbsp; resource & nbsp ;: the & nbsp seeks to solve the problem that ajax calls to php in the codeigniter framework are not allowed to access
The loginview.html in the viewsfolder references the base. js.
Ajax that calls php functions is included in base. js. The directory structure and code are as follows:
Google browser debugging error:
Failed to load resource: the server responded with status of 403 (Forbidden) is followed by the address
Http: // 127.0.0.1: 8088/teamlogging/application/controllers/Login. php/LoginActive? Username = 001 & password = wl
The following message is displayed when you click this address:
I don't know why this error is reported. please give me some advice.
------ Solution --------------------
Var url = "index. php/login"
------ Solution --------------------
Var url = "application/controllers/Login. php ";