public function hookAfterSaveItem($args) { if (!$args['post']) { return; } $record = $args['record']; $post = $args['post']; #echo "<pre>"; print_r($_POST); die("</pre>"); // reassign the selected files from other items to the current item if (isset($post['reassignFilesFiles']) and isset($post['itemId'])) { $itemID = $post['itemId'] ? $post['itemId'] : $args["record"]["id"]; $errMsg = SELF::reassignFiles_reassignFiles($itemID, $post['reassignFilesFiles']); # if ($errMsg) { $this->_helper->flashMessenger( $errMsg, 'error' ); } // ... turns out, we don't actually have a $this->_helper object here :-( } }