Run webpage on localhost

最后都变了- 提交于 2019-12-25 07:58:32

问题


I am working on a project with MVC architecture and using the codeigniter framework. I keep on getting an error when i try running the file in the following way.

http://localhost:9080/internship-management/sourcecode/codeigniter/index.php/vacancyManagement

I've set the base_url in the config.php file in the config directory as follows

*/
$config['base_url'] = 'http://localhost:9080/internship-management/sourcecode/codeigniter/';  
/*

I have my project Internship-Management inside the C drive under www within wamp.

C:\wamp\www\Internship-Management\SourceCode\CodeIgniter

The project structure of the controllers are as follows

After trying to run the controller with the path specified in the beginning (after turning on the wamp server), I get this error

Any help in this regard will be highly appreciated as I've been wrapping my head around this for hours now and I know this is trivial


回答1:


This issue was caused by a few missing CodeIgniter System Files Within the CodeIgniter directory, the following structure needs to be maintained

CodeIgniter

   - .idea(directory)
   - application(directory)
   - system(directory)
   - user_guide(directory)
   - .gitignore (text file)
   - composer.json (JSON file)
   - contributing.md (MD file)
   - index.php
   - license.txt


来源:https://stackoverflow.com/questions/39931505/run-webpage-on-localhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!