如果我延长下面的文件OR只是自动加载它autoload.php我得到的是HTTP 500,有时空输出。 MYControllerInterface.php位于应用程序/库下。笨扩展文件会导致HTTP 500
我已经将整个目录(recursivly)chmod到0777.我已经在根目录下用RewriteEngine On和Off创建了一个.htaccess。
我注释掉一切从{}到在MYcontrollerInterface ...
我试着删除的结局?>
我检查了mod_rewrite已在PHP配置启用...这太神秘了!
<?php
class MYcontrollerInterface extends CI_Controller {
public function __construct() {
parent::__construct();
//$this->load->helper('url');
}
function build_page($main_content_view, $data) {
/*
$this->load->view('header', $data);
//$this->load->view('content', $data);
//$this->load->view($main_content_view, $data, true);
$this->load->view('footer', $data);
*/
echo 'apa';
}
}
/* End of file MycontrollerInterface.php */
/* Location: ./application/controllers/MYcontrollerInterface.php */
?>
应用/日志/日志2012-04-12.php:
DEBUG - 2012-04-12 13:21:22 --> Config Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Hooks Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Utf8 Class Initialized
DEBUG - 2012-04-12 13:21:22 --> UTF-8 Support Enabled
DEBUG - 2012-04-12 13:21:22 --> URI Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Router Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Output Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Security Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Input Class Initialized
下面
不断重复:
DEBUG - 2012-04-12 13:21:22 --> Global POST and COOKIE data sanitized
DEBUG - 2012-04-12 13:21:22 --> Language Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Loader Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Controller Class Initialized
DEBUG - 2012-04-12 13:21:22 --> Final output sent to browser
DEBUG - 2012-04-12 13:21:22 --> Total execution time: 0.0320
DEBUG - 2012-04-12 13:21:38 --> Config Class Initialized
DEBUG - 2012-04-12 13:21:38 --> Hooks Class Initialized
DEBUG - 2012-04-12 13:21:38 --> Utf8 Class Initialized
DEBUG - 2012-04-12 13:21:38 --> UTF-8 Support Enabled
DEBUG - 2012-04-12 13:21:38 --> URI Class Initialized
DEBUG - 2012-04-12 13:21:38 --> Router Class Initialized
DEBUG - 2012-04-12 13:21:38 --> Output Class Initialized
DEBUG - 2012-04-12 13:21:38 --> Security Class Initialized
DEBUG - 2012-04-12 13:21:38 --> Input Class Initialized
你需要看看'apache'和'codeigniter'日志,找出,问题出在哪里。 – kirilloid 2012-04-12 11:32:15
我可以在哪里找到那些?在mac os x – OZZIE 2012-04-12 11:33:44
尝试设置xdebug并通过您的代码设置一些断点。这应该让你更好地了解发生了什么问题。 – alxbrd 2012-04-12 11:36:58