Croogo Security Error : Show security error on submit form
Croogo maintain security check when HTML elements are generated. Croogo SecurityComponent expects you will create your HTML forms and Forms field using FormHelper. So if you create some Form Element like input, select or others by placing direct HTML code it will block your form submission action. forms (and fields) using FormHelper. So you need to use FormHelper to generate your Form Elements to overcome from this Error.
Croogo also block your form submit if it contain some hidden fields. In that case you can write bellow code to accept the hidden fields.
echo $this->Form->unlockField('location_id'); echo $this->Form->input('location_id', array('type'=>'hidden','placeholder'=>'Location'));
Another way to fully disable the security check for actions you can add code to your beforefilter function in controller:
public function beforeFilter() { $this->Security->unlockedActions = array('admin_placeedit'); if ($this->action == 'admin_placeedit') { $this->Security->csrfCheck = false; $this->Security->validatePost = false; } }