[FLOW3-general] Beginner issue with createAction() with two parameters

Christine Gerpheide cgerpheide at gmail.com
Wed Dec 23 00:56:53 CET 2009


Good evening,

I'm currently having an issue calling a simple createAction().  I would like
the action inside of my Tab Controller to take two parametrs, $page and
$newTab, and inside the action it will call $page->addTab($newTab) to create
a new Tab.  This action happens when the user submits a form with the tab's
properties, also passing the page as an argument.  However, I am always
getting the exception "#1255082824: Request hash (HMAC) checking failed. The
parameter __hmac was invalid or not set, and objects were modified."

My form tag starts like this:
<f:form method="post" action="create" name="newTab" arguments="{page :
page}">

And this is the signature of the createAction:
/**
 * @param \F3\...\Domain\Model\Page $page The parent page
 * @param \F3\...\Domain\Model\Tab $newTab The new tab
 * @return void
 */
public function createAction(\F3\...\Domain\Model\Page
$page, \F3\...\Domain\Model\Tab $newTab) { ... }

When I remove all references to $page, it successfully comes inside the
method.  Should I be creating the form another way, or is there a better way
to do this?  Any insight here would be very helpful!

Thank you,
Christine


More information about the FLOW3-general mailing list