Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use DaQrCodeQrCode;
- ?>
- <?php foreach ($modelCheckListDetail as $i => $modelCheckListDetail): ?>
- <?php
- $qrCode = (new QrCode($modelCheckListDetail->unique_key))
- ->setSize(100)
- ->setMargin(5)
- ?>
- <tr class="item">
- <td> <?= ($i + 1) ?> </td>
- <td> <?= $form->field($modelCheckListDetail, "[{$i}]unique_key")->label(false)->textInput([
- 'readOnly' => true
- ]) ?> </td>
- <td> <?= Html::img($qrCode->writeDataUri()); ?> </td>
- </tr>
- <?php endforeach; ?>
Add Comment
Please, Sign In to add comment