Is it possible to turn of all CakePHP security features for only 1 particular form in a view? So I don't get any hidden fields (tokens) in that form.
Thank you,
Bart
You can disable it for that action via:
public function beforeFilter() {
parent::beforeFilter();
if ($this->request->params['action'] == 'action') {
$this->Security->validatePost = false;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With