简体   繁体   English

找不到PhpStorm CodeIgniter 404页面

[英]PhpStorm CodeIgniter 404 page not found

I am facing a problem with CodeIgniter framework in PhpStorm. 我在PhpStorm中面临CodeIgniter框架的问题。

I have created a controller as home.php with a public function test . 我已经创建了一个带有公共功能test home.php控制器。 And I've created a view page as mytest . 我创建了一个视图页面作为mytest

In browser when I type http://localhost/mvc/index.php/home/test/ the page is not loading it shows 在浏览器中输入http://localhost/mvc/index.php/home/test/ ,页面未加载显示

"404 page not found". “404页面不存在”。

What might be the problem? 可能是什么问题?

Using XAMPP and CodeIgniter 2.1.0 使用XAMPP和CodeIgniter 2.1.0

检查您的班级名称,班级名称应与文件名相同,您使用的是哪个版本的ci?

Controller name : Home.php 控制器名称 :Home.php

Method / Function : test() 方法/功能 :test()

View : mytest.php 查看 :mytest.php

class Home extends CI_Controller 
{ 
     public function test() 
     {
       $this->load->view('mytest');
     }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM