// CSRF$csrf = new Hidden('csrf');$csrf->addValidator( new Identical( [ 'value' => $this->security->getSessionToken(), 'message' => $this->trans->_('csfr') ] )); $csrf->clear();$this->add($csrf);
Trong volt tempalte
{{ form.render('csrf', ['value': security.getToken()]) }}
Vậy là xong