您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
999B

  1. <?php
  2. use yii\helpers\Html;
  3. /* @var $this \yii\web\View */
  4. /* @var $generators \yii\gii\Generator[] */
  5. /* @var $activeGenerator \yii\gii\Generator */
  6. /* @var $content string */
  7. $generators = Yii::$app->controller->module->generators;
  8. $activeGenerator = Yii::$app->controller->generator;
  9. ?>
  10. <?php $this->beginContent('@yii/gii/views/layouts/main.php'); ?>
  11. <div class="row">
  12. <div class="col-md-3 col-sm-4">
  13. <div class="list-group">
  14. <?php
  15. foreach ($generators as $id => $generator) {
  16. $label = '<i class="glyphicon glyphicon-chevron-right"></i>' . Html::encode($generator->getName());
  17. echo Html::a($label, ['default/view', 'id' => $id], [
  18. 'class' => $generator === $activeGenerator ? 'list-group-item active' : 'list-group-item',
  19. ]);
  20. }
  21. ?>
  22. </div>
  23. </div>
  24. <div class="col-md-9 col-sm-8">
  25. <?= $content ?>
  26. </div>
  27. </div>
  28. <?php $this->endContent(); ?>