Solve the problems related to the inability to access php by calling ajax in the codeigniter framework.

Source: Internet
Author: User
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 ";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.