Dump or Print Event Values

Discussion in 'aMember Pro v.4' started by exploramania, Jan 8, 2012.

  1. exploramania

    exploramania New Member

    Joined:
    Oct 27, 2011
    Messages:
    1
    Hello,

    Sorry if this was already answered or is written somewhere but I just can't find some info about how to dump or get or print the values from an event.

    E.g.
    PHP:
    public function onUserAfterInsert(Am_Event_UserAfterInsert $event) {
        
    // dump/print $event object
        // print_rr($event); <- no output
    }
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Try print_rre instead - it will generate an exception after print_rr
    This way you will see was event fired at all.

Share This Page