Why is the browser infinite revolution in ci projects?

Source: Internet
Author: User
I have heard that ci ranks top in the global php framework, and I plan to learn it first and second. However, when I learned it, I found that I only need to write a little wrong code and refresh the project, the browser will be infinitely circled, and it is very depressing. it is not difficult to report an error because it is a matter of reason. In the end, this situation... I have heard that ci ranks top in the global php framework, and I plan to learn it first and second. However, when I learned it, I found that I only need to write a little wrong code and refresh the project, the browser will be infinitely circled, and it is very depressing. it is not difficult to report an error as a matter of reason. In the end, if this happens more often, the browser will not be able to continue using it.

Today, I got a copy of other people's code. I wrote it using ci, and the result was an infinite circle. after turning it for half an hour, I still don't report an error. Is there a problem with my ci installation? Does ci have special installation skills?

Solved the problem. I used php5.5 and now upgraded it to 5.6.php.iniOfdate.timezone = PRC That's All. I don't know if it's just a php configuration problem. now I can see an error. after resolving the error, I can successfully run another project.

Reply content:

I have heard that ci ranks top in the global php framework, and I plan to learn it first and second. However, when I learned it, I found that I only need to write a little wrong code and refresh the project, the browser will be infinitely circled, and it is very depressing. it is not difficult to report an error as a matter of reason. In the end, if this happens more often, the browser will not be able to continue using it.

Today, I got a copy of other people's code. I wrote it using ci, and the result was an infinite circle. after turning it for half an hour, I still don't report an error. Is there a problem with my ci installation? Does ci have special installation skills?

Solved the problem. I used php5.5 and now upgraded it to 5.6.php.iniOfdate.timezone = PRC That's All. I don't know if it's just a php configuration problem. now I can see an error. after resolving the error, I can successfully run another project.

It has nothing to do with the framework. it should be your program logic problem. an error is reported when the page is forcibly enabled to see what the situation is, either an endless loop or the resources cannot be loaded.

Force error code:

error_reporting(E_ALL);ini_set('display_errors','On');

I guess you must have just used it, but I have never used CI. actually, you can look at Laravel or something and try tp5.

Error notification enabled

It may not be due to the CI issue. if you take other people's projects, it is possible that other people's projects have loaded their own domain resources. if you build a local environment and run it, it will become cross-domain, in general, the possibility of front-end errors is relatively high.

This problem occurs. for developers, you should know how to test the problem:

  1. Change the error level (not to mention, there is a CI framework, index. php fileENVIRONMENTTo modify this change)

  2. Google browser debuggingF12Open the debugging window,networkTracking response

For example, the method 1 of a controller is loaded by default, Method 1 has a redirect to Method 2, and then redirect returns method 1, which is an endless loop.

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.