index.php 991 Bytes
Newer Older
Qiang Xue committed
1 2 3 4
<?php
use yii\helpers\Html;

/**
slavcodev committed
5 6 7
 * @var \yii\web\View $this
 * @var \yii\gii\Generator[] $generators
 * @var string $content
Qiang Xue committed
8 9 10 11 12
 */
$generators = Yii::$app->controller->module->generators;
$this->title = 'Welcome to Gii';
?>
<div class="default-index">
13
    <div class="page-header">
14
        <h1>Welcome to Gii <small>a magical tool that can write code for you</small></h1>
15
    </div>
Qiang Xue committed
16

17
    <p class="lead">Start the fun with the following code generators:</p>
Qiang Xue committed
18

19 20 21 22 23 24 25 26 27
    <div class="row">
        <?php foreach ($generators as $id => $generator): ?>
        <div class="generator col-lg-4">
            <h3><?= Html::encode($generator->getName()) ?></h3>
            <p><?= $generator->getDescription() ?></p>
            <p><?= Html::a('Start »', ['default/view', 'id' => $id], ['class' => 'btn btn-default']) ?></p>
        </div>
        <?php endforeach; ?>
    </div>
Qiang Xue committed
28

29
    <p><a class="btn btn-success" href="http://www.yiiframework.com/extensions/?tag=gii">Get More Generators</a></p>
Qiang Xue committed
30 31

</div>