Refactored Csrf form widget. + Added unit tests for Csrt.
This commit is contained in:
parent
d3a390d3f8
commit
7abd3febc1
9 changed files with 175 additions and 103 deletions
|
|
@ -92,9 +92,12 @@ class GroupController extends Controller
|
|||
}
|
||||
|
||||
$form = new Form();
|
||||
|
||||
$form->setMethod('POST');
|
||||
$form->setAction(APP_URL . 'group/edit' . (!is_null($groupId) ? '/' . $groupId : ''));
|
||||
|
||||
$form->addField(new Form\Element\Csrf('group_form'));
|
||||
|
||||
$title = new Form\Element\Text('title');
|
||||
$title->setContainerClass('form-group');
|
||||
$title->setClass('form-control');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue