0

I am getting this error when I try to run my code on server.

The error is for model file cities.php

The code in cities.php is as follows:

class Model_Cities extends Model_Database {}

It works fine on local server. But gives error for production server.

Vijayaragavendran
  • 726
  • 1
  • 10
  • 21
Harshala
  • 21
  • 7

1 Answers1

1

Is kohana database module enabled on server in bootstrap.php? Usually that file is slightly different on production than on local and sometimes you can forget to enable additional module etc.

You could check all loaded modules using:

print_r(Kohana::modules());

You should see database module and path to it, then you can check that path and see if modules\database\classes\model\database.php file exist. If path and file exist and was not changed then it should work.

Grzesiek
  • 442
  • 4
  • 15