嘗試訪問我的planner.php和shared.php控制器時收到此致命錯誤。有什麼想法嗎?Ion Auth/CodeIgniter致命錯誤
Fatal error: Uncaught exception 'Exception' with message 'Undefined method Ion_auth::get_user() called' in
/application/libraries/Ion_auth.php:88 Stack trace: #0
/application/core/MY_Controller.php(50): Ion_auth->__call('get_user', Array) #1
/application/core/MY_Controller.php(50): Ion_auth->get_user() #2
/application/controllers/user/planner.php(9): Common_Auth_Controller->__construct() #3
/system/core/CodeIgniter.php(288): Planner->__construct() #4 /index.php(202): require_once('/Users/lrussell...') #5 {main} thrown in/application/libraries/Ion_auth.php on line 88
圖書館推廣我使用離子驗證: http://jondavidjohn.com/blog/2011/01/scalable-login-system-for-codeigniter-ion_auth
規劃控制器: http://pastie.org/private/wc1bq6eiqb9hn8iubwdgq
共享控制器: http://pastie.org/private/uj3ta8dw3jl7kqxizs9n1a
Ion_auth圖書館線路88段: http://pastie.org/private/mhgwdzjyhatwsdrux4gqpa
CRUD型號: http://pastie.org/private/m2nhfqzabdsx5eiz6xqupw
活動型號: http://pastie.org/private/b6ksjoowl7wde9errow
共享型號: http://pastie.org/private/f741jfnf8o2l5oxphnrl5w
我可以證實這一點,它直接關係到這最近提交到圖書館https://github.com/benedmunds/CodeIgniter-Ion-Auth/commit/ef733edb5ef396fec57fe363c5c8616506054c79 – jondavidjohn
是的,所以從w ebsite benedmunds.com/ion_auth較舊,您必須直接從github下載文件以使其正常工作。感謝您的幫助! – imlouisrussell