Yii2 evaluation extension
Yii2 extension, automatically generate evaluation grid.
Use it by embedding code below in your view,
Define questions, scale, sections, also set optional widget id and choose whether display additional comment box.1
2
3
4
5
6
7
8
9<?= \peng\evaluation\RadioButtonMatrix::widget([
'id' => 'self-evalution',
'questions' => ['Strength of Mind', 'Open Communication', 'Leadership',
'Understanding', 'Teamwork', 'Integrity', 'Originality', 'Notification',
],
'scale' => ['min' => 0, 'max' => 5],
'sections' => ['2015 Scores', '2016 Scores'],
'enableComment' => true,
]); ?>
The preferred way to install this extension is through composer.
Either run
1 | php composer.phar require --prefer-dist peng/yii2-evaluation "0.1.0" |
or add
1 | "peng/yii2-evaluation": "0.1.0" |
to the require section of your composer.json file.
Fork it on
Github