![]() |
Help to load the page - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help to load the page (/showthread.php?tid=10537) |
Help to load the page - El Forum - 08-03-2008 [eluser]Unknown[/eluser] I am developing a website for my company and I am struck in making the app run. I am able to see only the home page when I type in the URL http://localhost/codeigniter For instance, when I type in http://localhost/CodeIgniter/admin/login/ the page is not loading up and displays an error message. "Not Found The requested URL /CodeIgniter/admin/login/ was not found on this server." Please find the directory structure of my app below: C:\wamp\www\CodeIgniter\system\application\modules\admin Controllers Views I am reading the files from a separate folder called as modules and modified the path accordingly in the libraries folder. The following is the base site URL that I have set: $config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); Please help me out in this regard. I have the entire code ready but the links are not showing up appropriately! Thanks, Pavan Help to load the page - El Forum - 08-04-2008 [eluser]stuffradio[/eluser] By default this is how it works. You have your upload dir, lets pretend you upload it in the root folder. To access the home page you go http://localhost or if it's uploaded in a codeigniter folder http://localhost/codeigniter/ If you want to go to another page(controller) You go http://localhost/codeigniter/login The file path for the controller would be: home/user/public_html/codeigniter/system/application/controller/login.php Here is an example Controller for login: Code: <?php I hope you get the picture on how it works. In order to use the function 'retrieve' you'd go: http://localhost/codeigniter/login/retrieve If you have any other questions just ask! |