ormkohanakohana-3kohana-ormkohana-3.3

ORM::factory is giving uncaught exception in Kohana


This is the error I am facing.

enter image description here

  1. This is my controller code

    <?php defined('SYSPATH') or die('No direct script access.');
    class Controller_Home extends Controller {        
         public function action_index()
         {
            $users = ORM::factory("users");
         }
    }
    
  2. My model code

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

    I am on a tight schedule please help.


Solution

  • I'm guess, that you have php7? Kohana work only on php5. Use https://github.com/koseven/koseven instead