LoginSignup
14
10

More than 5 years have passed since last update.

FuelPHPで Class 'Auth' not found in

Posted at

oil consoleでAuthインスタンスを作成しようとした際に、

Fatal Error - Class 'Auth' not found in PKGPATH/oil/classes/console.php(117) : eval()'d code on line 1

というエラーが出ました。

解決方法

このエラーは、app/config/config.phpで設定を行なうことで解決できます。

'always_load'  => array(
    'packages'  => array(
        'auth',
    ),
),

'auth'を追加し、
'always_load'がコメントアウトになっているので、
コメントアウトを外します。

これでAuthを使用できるようになります。

14
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
10