I'm working with this event dispatch: dispatchEvent('nextbits_form_save_after',array('form_data'=>$params, 'form_model'=>$formModel));
but I don't have any documentation on it.
The event fires after a contact form is submitted, and I need to do some routing to deliver the posted data to specific email addresses based on some of the choices on the form, etc. How can I get a listing or enumeration of the data that is passed with the event?
I was thinking something along the lines of:
$request = $observer->getEvent()->getData(‘form_data’);
and then
foreach ($request as $k => $v) $output .= "Key: '".$k."' | Value: ".$v."<br>";
...but I get no response from that....
$this->getRequest()
and/or '$this->getRequest()->getParams()`? – pspahn Apr 10 '14 at 21:47$request = $observer->getEvent()->getRequest()->getParams();
and ` = $observer->getEvent()->getRequest()`, but don't seem to get anything back. – Greg Nickoloff Apr 11 '14 at 13:10$event = $observer->getEvent(); $formData = $event->getFormData(); // magic get/set $formModel = $event->getFormModel(); // magic get/set $fd = zend_debug::dump($formData); $fm = zend_debug::dump($formModel);
– Greg Nickoloff Apr 11 '14 at 13:28