CodeIgniter: 404 Page Not Found on Live Server

前端 未结 11 1538
感动是毒
感动是毒 2020-12-03 04:46

I have been developing a small web application with CodeIgniter. After testing it out locally I went to put it on my web server to allow a couple other people test out some

11条回答
  •  情话喂你
    2020-12-03 05:05

    I have solved this problem, please just make few changes

    1- all controller class name should start with capital letter. i mean first letter of class should be capital . eg we have controler with class name Pages

    so it should be Pages not pages

    2- save the controller class Pages as Pages.php not pages.php

    so first letter must be capital

    same for model, model class first letter should be capital and also save model class as Pages_model.php not page_model.php

    hope this will solve ur problem

提交回复
热议问题