Closed jfdelarosa closed 4 years ago
Basically you can't load a controller who's is using the migration library if you have previously loaded (locally or globally) Aauth.
If you do that, it will crash with this error on screen:
A PHP Error was encountered Severity: Notice Message: Trying to get property 'dbdriver' of non-object Filename: core/Loader.php Line Number: 454 Backtrace: File: /application/controllers/admin/Update.php Line: 6 Function: library File: /index.php Line: 315 Function: require_once
A PHP Error was encountered Severity: Notice
Message: Trying to get property 'dbdriver' of non-object
Filename: core/Loader.php
Line Number: 454
Backtrace:
File: /application/controllers/admin/Update.php Line: 6 Function: library
File: /index.php Line: 315 Function: require_once
Digging around, I found out that it changes your instance of $CI->db to NULL and $CI->aauth->aauth_db is what you expect $CI->db to be.
$CI->db
NULL
$CI->aauth->aauth_db
I'm using CI 3.1.11
Aauth only delivers Migrations in v3-dev branch, if you use the actual v3-dev branch files then it will not work in CI3 it will work only with CI4.
Basically you can't load a controller who's is using the migration library if you have previously loaded (locally or globally) Aauth.
If you do that, it will crash with this error on screen:
Digging around, I found out that it changes your instance of
$CI->db
toNULL
and$CI->aauth->aauth_db
is what you expect$CI->db
to be.I'm using CI 3.1.11