2017-07-26 48 views
0

這是我正面臨的錯誤。ORM ::工廠在Kohana中給出未捕獲的異常

enter image description here

  1. 這是我的控制器代碼

    <?php defined('SYSPATH') or die('No direct script access.'); 
    class Controller_Home extends Controller {   
        public function action_index() 
        { 
         $users = ORM::factory("users"); 
        } 
    } 
    
  2. 我的模型代碼

    <?php defined('SYSPATH') or die('No direct access allowed.'); 
        class Model_users extends ORM{ } 
    

    我在緊張的日程安排,請幫助。

回答

0

我想,你有php7? Kohana只能在php5上工作。用https://github.com/koseven/koseven代替

+0

我也這樣做過。我在這裏也提到了解決方案的評論,不明白爲什麼它不在這裏。 –