Skip to content

Instantly share code, notes, and snippets.

@manuakasam
Created July 26, 2012 12:02
Show Gist options
  • Save manuakasam/3181673 to your computer and use it in GitHub Desktop.
Save manuakasam/3181673 to your computer and use it in GitHub Desktop.
CSRF not working :(
$this->add(array(
'name' => 'security',
'type' => 'Zend\Form\Element\Csrf'
));
$this->add(array(
'name' => 'submit',
'attributes' => array(
'type' => 'submit',
'value' => 'Go',
'id' => 'submitbutton'
)
));
$this->setValidationGroup(array(
'security',
'option' => array(
'name',
'valuefield'
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment