CodeIgniter:致命错误:调用私有方法CI_URI

时间:2013-12-21 01:45:17

标签: php codeigniter

我在网站上收到一条消息,该网站工作正常,直到我们从SuPHP更改为FastCGI。我不知道如何解决这个问题。我必须更改代码或我必须设置不同的PHP值。

错误消息是:

  

致命错误:从第80行的/home/tnbmobi/public_html/application/core/MY_URI.php中的上下文“MY_URI”调用私有方法CI_URI :: _ parse_cli_args()

我的代码如下:

function _fetch_uri_string_2()
{
  if (strtoupper($this->config->item('uri_protocol')) == 'AUTO')
  {
    // Arguments exist, it must be a command line request
    if ( ! empty($_SERVER['argv']))
    {
      $this->uri_string = $this->_parse_cli_args();
      return;
    }
  }
}

1 个答案:

答案 0 :(得分:0)

_parse_cli_args私有方法位于CI_URI类中,因此您无法从子类访问该方法,请参阅 Visibility 以获取更多信息

相关问题