BootstrapCake
BootstrapCake copied to clipboard
Unexpected field 'apply' in POST data
Following line custom field 'apply' causing security issue:
<?php echo $this->Form->submit(__('Apply'), array('name' => 'data[apply]', 'class' => 'btn btn-default', 'div' => false, 'style' => 'margin-left:10px;')); ?>
Needed to unlock the field right below the create() line:
<?php echo $this->Form->create('MyModel', array('role' => 'form')); ?>
<?php echo $this->Form->unlockField('apply'); ?>
This package is no longer actively maintained, but feel free to submit a PR with a fix.