Closed simkimsia closed 11 years ago
No, it has to be public. You can't call a protected method from outside of scope, that's just basic PHP rules, nothing to do with Cake. That's why its underscored, so that it can't be used as an action.
Understood.
I will use // @codingStandardsIgnoreStart to tell phpcs to ignore the related methods in my AppController.
Thank you.
I am trying to refactor my code to conform more to CakePHP standards.
For CakePHP standards, _methodName is meant for protected methods.
Can your autologin code still work if I change the _autoLogin in my UsersController to protected?