由於某種原因,我看到一個Kohana exeption Exception [ 0 ]: The "users" table doesn't exist. Make sure to import the tables.sql file
。
我需要做什麼?KOHANA:ORM + MySQL找不到表
19 {
20 ORM::factory('user');
21 }
22 catch(exception $e)
23 {
24 throw new Exception('The "users" table doesn\'t exist. Make sure to import the tables.sql file');
25 }
26
27 Route::set('Kohanauserauth', user::path().'(/<action>(/<id>))')
28 -> defaults(array(
29 'controller' => 'Kohanauserauth'
在第24行上面加上'echo Database_Exception :: text($ e);',那應該會給你特定的錯誤。 – Styphon 2014-10-06 14:48:28