how to use afterLogin event of cwebuser class i dont know how to do this and i was confused of attaching events.
how to use afterLogin event of cwebuser class i dont know how to do this and i was confused of attaching events.
you cannot attach events to cwebuser::afterlogin
instead, extend cwebuser and override afterlogin()-method
then register your new webuser in config/main.php