Does Cake change the way object inheritance works?

I have the following app controllers:

class AppController extends Controller {
        var $components = array('Session','Auth','Acl');
}

class PluginAppController extends AppController {
        var $components = array('Session');
}

class PluginController extends PluginAppController {
       function beforeFilter() {
            var_dump($this->components);
       }
}

this returns:
array
  0 => 'Session'
  1 => 'Auth'
  2 => 'Acl'
  3 => 'Session'

Coming from a pure object oriented perspective I would have expected
the PluginAppController's setting so the components member to
overwrite the parent components member, not to augment it. Is Cake
using some sort of reflection to mess with this?

Simon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to