-1
通過Codeigniter 2.1.3重新安裝tank_auth
庫。
當我嘗試訪問「http://localhost/es/auth/register」得到下面的PHP錯誤:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Auth::$db
Filename: libraries/Session.php
Line Number: 201
一切似乎進行配置和「自動加載」。
編輯:我'/application/config/autoload.php'文件包含以下行:
$autoload['packages'] = array();
$autoload['libraries'] = array('database', 'session', 'xmlrpc','encrypt');
$autoload['helper'] = array('url', 'file');
$autoload['config'] = array();
$autoload['language'] = array();
$autoload['model'] = array();
可能是什麼問題?
您必須先加載db庫。在 autoload.php: '$ autoload ['libraries'] = array('database');' –
感謝Keval,但它已經加載... –
檢查這可能會幫助你https:// github。 com/benedmunds/CodeIgniter-Ion-Auth/commit/644dd101a11207a042cf03b02885847caf99f0ff –