problem with uploading CI on the web server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: problem with uploading CI on the web server (/showthread.php?tid=61950) |
problem with uploading CI on the web server - jaydblack - 06-03-2015 Hi. I have some problems with upload my CI project on the web server. Until now I hosted it only locally on my xampp but i wanted to upload this on the web. But it's not working. I thought it was some config.php issue, but after that I've uploaded vanilla CI 3 to test if it's works. So the welcome controller works fine. but when i've created some test controller like: <?php defined('BASEPATH') OR exit('No direct script access allowed'); class hello extends CI_Controller { public function index() { echo 'aaaa'; } } After that i've entered http://mydomain.com/index.php/hello . So it should print 'aaaa', right? But it didn't. It's just shows 404 error page. And I have this issue with every controller. Am I doing something wrong? Did I missed something? Any ideas or anything? Thank you for your help. RE: problem with uploading CI on the web server - gadelat - 06-03-2015 Yes http://www.codeigniter.com/userguide3/general/controllers.html#let-s-try-it-hello-world RE: problem with uploading CI on the web server - CroNiX - 06-03-2015 Yes, read the notes in the link gadelat posted. Controller Filename MUST be "Hello.php" (cap first letter) Controller definition MUST be "class Hello extends CI_Controller" (first letter of classname upper case) Windows doesn't care about upper/lowercase filenames, but just about everything else in the world does |