Hi,
I wrote the behavior:
class LogLoginBehavior extends CBehavior {
public function getEnabled() { throw new Exception ( 'DDD' ); return true; }
public function login ( $identity, $duration = 0 ){
throw new Exception ( 'DDD' );
User::model()->findByPk( $identity->id )->hasLogined();
$this->owner->login( $identity, $duration );
}
}
and changed the user component configure:
'user'=>array(
'allowAutoLogin'=>true,
'behaviors' => array (
'loglogin' => array ( 'class' => 'application.components.LogLoginBehavior',
'enabled' => true ) )
)
But the exception doesn’t appeared.
Where did I a mistaken?