在localhost上运行网页 [英] Run webpage on localhost

查看:306
本文介绍了在localhost上运行网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个具有MVC架构和使用codeigniter框架的项目。我继续得到一个错误,当我尝试以下列方式运行该文件。

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-源代码/ codeigniter / index.php / vacancyManagement

我在config目录中的config.php文件中设置了base_url,如下

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/';  
/*



我有我的项目Internship- 。

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

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

控制器的项目结构如下

尝试使用开头指定的路径运行控制器后(打开wamp服务器后),我收到此错误

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

推荐答案

这个问题是由几个缺少的CodeIgniter系统文件
在CodeIgniter目录,需要维护以下结构

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

这篇关于在localhost上运行网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆