codeigniter 无法在我的实时服务器中加载我的 application/core class
codeigniter can't load my application/core class in my live server
我在 application/core/MY_input.php 中有一个名为 MY_Input 的 class。我想覆盖现有的 post 方法 return false 这是代码。
class MY_Input extends CI_Input {
function __construct()
{
parent::__construct();
}
function post($index = NULL, $xss_clean = FALSE)
{
$post = parent::post($index, $xss_clean);
return ($post !== FALSE) ? $post : NULL;
}
}
但是我得到了原始的 post 方法,代码在我的本地主机上工作正常,但在我的实时服务器上却没有,我不知道为什么。
信息:
-CodeIgniter 2.2
-服务器:php v5.5.9-1 ubuntu 4.7
-localhost :php v5.4.27
Ubuntu/linux 文件区分大小写。
MY_input.php
应该 MY_Input.php
与 class 名称相同 MY_input
我在 application/core/MY_input.php 中有一个名为 MY_Input 的 class。我想覆盖现有的 post 方法 return false 这是代码。
class MY_Input extends CI_Input {
function __construct()
{
parent::__construct();
}
function post($index = NULL, $xss_clean = FALSE)
{
$post = parent::post($index, $xss_clean);
return ($post !== FALSE) ? $post : NULL;
}
}
但是我得到了原始的 post 方法,代码在我的本地主机上工作正常,但在我的实时服务器上却没有,我不知道为什么。
信息:
-CodeIgniter 2.2
-服务器:php v5.5.9-1 ubuntu 4.7
-localhost :php v5.4.27
Ubuntu/linux 文件区分大小写。
MY_input.php
应该 MY_Input.php
与 class 名称相同 MY_input