File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 22
22
Configure::load ($ file );
23
23
});
24
24
25
+ TableRegistry::config ('Users ' , ['className ' => Configure::read ('Users.table ' )]);
26
+ TableRegistry::config ('CakeDC/Users.Users ' , ['className ' => Configure::read ('Users.table ' )]);
27
+
25
28
if (Configure::check ('Users.auth ' )) {
26
29
Configure::write ('Auth.authenticate.all.userModel ' , Configure::read ('Users.table ' ));
27
30
}
Original file line number Diff line number Diff line change @@ -36,15 +36,4 @@ class UsersController extends AppController
36
36
use RegisterTrait;
37
37
use SimpleCrudTrait;
38
38
use SocialTrait;
39
-
40
- /**
41
- * Initialize and set defaults for model class
42
- *
43
- * @return void
44
- */
45
- public function initialize ()
46
- {
47
- parent ::initialize ();
48
- $ this ->_setModelClass (Configure::read ('Users.table ' ));
49
- }
50
39
}
You can’t perform that action at this time.
0 commit comments