【发布时间】:2014-10-05 11:33:32
【问题描述】:
出于某种原因,我看到了 Kohana 异常 Exception [ 0 ]: The "users" table doesn't exist. Make sure to import the tables.sql file。
我需要做什么?
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);这应该会给你具体的错误。