This repository has been archived by the owner on Dec 2, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
AIIXForm Fieldsets
ailixter edited this page Mar 5, 2016
·
9 revisions
[fieldset]
checks1 = a,b,c
[a]
value = "a.value"
; -testval = "post{a}"
[c]
value = "post{c}"
; -testval = "post{c}"
foreach (\AIIX\Form::fieldsetIDs('fieldset/checks1') as $control_id) {
echo \AIIX\Form::control($control_id);
}
<input value="post{a}" id="a" name="a" type="text"/>
<input id="b" name="b" type="text"/>
<input value="post{c}" id="c" name="c" type="text"/>
[fieldset]
; the same - \AIIX\Form::fieldsetIds('fieldset/checks2')
checks2[] = a
checks2[] = b
checks2[] = c
; and this - \AIIX\Form::fieldsetIds('fieldset/checks3')
checks3 = @fieldset3
[@fieldset3]
; and even this itself - \AIIX\Form::fieldsetIds('@fieldset3)
10 = a
20 = b
30 = c
TODO