I am a little bit confused right now…in the CakePHP documentation, it states that PHP’s visibility can be replaced as follows: private with __ and protected with _. But doing the necessary replacements, and calling a private method from within another class leads to the execution of that method without any restriction. What am I missing?
I am a little bit confused right now…in the CakePHP documentation, it states that
Share
If you’re setting them in the model, just use private and protected, the _ and __ only work for controller actions