Load initial values from a behavior

Hi, is it possible to load initial values from a behaviour attached to one or more controllers, a sort of init() function in a behavior?

I think you should do it when a behavior is being attached (CBehavior.attach() method):




public function attach($owner)

{

    parent::attach($owner);

    $this->owner->foo = 'bar';

}