2012-03-29 33 views
0

HMVCのコードイグナイター2.1.0を使用しました。 " 41行に\ xamppの\ htdocsに\ HMVC \アプリケーション\ THIRD_PARTY \ MX \ Base.phpという:クラスのCI_Baseは" Eには見られない致命的なエラー" ファイルを一覧表示致命的なエラー:クラス 'CI_Base'が見つかりません

私のディレクトリは次のとおりです。私はエラーを得た

application/core/

- MY_Controller.php 
    - MY_Loader.php 
    - MY_Router.php 

application/third_party/MX/

- Base.php 
    - Ci.php 
    - Config.php 
    - Controller.php 
    - Lang.php 
    - Loader.php 
    - Modules.php 
    - Router.php 

application/modules/foo/

- controllers 
    - views 

大変ありがとうございます。

Base.phpという

<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 

/* load MX core classes */ 
require_once 'Lang.php'; 
require_once 'Config.php'; 

/** 
* Modular Extensions - HMVC 
* 
* Adapted from the CodeIgniter Core Classes 
* @link http://codeigniter.com 
* 
* Description: 
* This library extends the CodeIgniter CI_Base class and creates an application 
* object allowing use of the HMVC design pattern. 
* 
* Install this file as application/third_party/MX/Base.php 
* 
* @copyright Copyright (c) Wiredesignz 2010-09-09 
* @version  5.3.4 
* 
* Permission is hereby granted, free of charge, to any person obtaining a copy 
* of this software and associated documentation files (the "Software"), to deal 
* in the Software without restriction, including without limitation the rights 
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
* copies of the Software, and to permit persons to whom the Software is 
* furnished to do so, subject to the following conditions: 
* 
* The above copyright notice and this permission notice shall be included in 
* all copies or substantial portions of the Software. 
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
* THE SOFTWARE. 
**/ 
class CI extends CI_Base 
{ // line 41 
    public static $APP; 

    public function __construct() { 

     parent::__construct(); 

     /* assign the application instance */ 
     self::$APP = CI_Base::get_instance(); 

     /* assign the core classes */ 
     $classes = (CI_VERSION < 2) ? array(
      'config' => 'Config', 
      'input'  => 'Input', 
      'benchmark' => 'Benchmark', 
      'uri'  => 'URI', 
      'output' => 'Output', 
      'lang'  => 'Language', 
      'router' => 'Router' 
     ) : is_loaded(); 

     foreach ($classes as $key => $class) { 
      $this->$key = load_class($class); 
     } 

     /* assign the core loader */ 
     $this->load = load_class('Loader', 'core'); 

     /* autoload application items */ 
     $this->load->_ci_autoloader(); 

     /* re-assign language and config for modules */ 
     if (! is_a($this->lang, 'MX_Lang')) $this->lang = new MX_Lang; 
     if (! is_a($this->config, 'MX_Config')) $this->config = new MX_Config; 
    } 
} 

/* create the application object */ 
new CI; 
+1

は何ですか41行目?こちらに書いてください – safarov

+0

上記の編集部分に入れました。 – npcoda

答えて

0

あなたはCodeIgniterの2.0 <

最新バージョンを試してみてくださいと

@copyright Copyright (c) Wiredesignz 2010-09-09 
@version  5.3.4 

その対応していない古いバージョンを使用して(5.4)http://codeigniter.com/wiki/Modular_Extensions_-_HMVC

+0

ありがとうございました。 – npcoda

+1

答えを受け入れるpls – safarov

関連する問題