Created
September 1, 2015 20:34
-
-
Save llavillaccama/4d9cbe4159bcc912cbaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table 01 (options) | |
op-id name | |
--------------- | |
1 name 1 | |
2 name 2 | |
3 name 3 | |
Table 2 (license) | |
lic-id name | |
--------------- | |
1 test 1 | |
2 test 2 | |
Table 3 (options-licenses) | |
lic-id op-id | |
-------------------- | |
1 2 | |
1 3 | |
2 1 | |
<?php | |
//edit license 1 | |
$options = Options::find()->all(); | |
foreach ($options as $value) { | |
echo $form->field($value, 'op-id')->checkBox(['label' =>$value['name']]); | |
} | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment