I was reading the following paragraph at https://book.cakephp.org/1.2/en/The-Manual/Developing-with-CakePHP/Controllers.html#the-app-controller:
"While normal object-oriented inheritance rules apply, CakePHP also does a bit of extra work when it comes to special controller attributes, like the list of components or helpers used by a controller. In these cases, AppController value arrays are merged with child controller class arrays."
In my AppController class I have this:
var $components = array(
'Security',
'Pdf'
);
In another controller that extends AppController, I have this:
var $components = array(
'Paypal'
);
Since the theory says this:
"AppController value arrays are merged with child controller class arrays"
Does it mean that in my controller that extends AppController, merging components would be in this case the equivalent of having the following available?:
var $components = array(
'Security',
'Pdf',
'Paypal'
);
Thank you.
varhas not been used by any competent developer since PHP5.0 was released (around 2005th). - tereško