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

4 5 6 7
/* @var $this \yii\web\View */
/* @var $generators \yii\gii\Generator[] */
/* @var $content string */

Qiang Xue committed
8 9 10 11
$generators = Yii::$app->controller->module->generators;
$this->title = 'Welcome to Gii';
?>
<div class="default-index">
12
    <div class="page-header">
13
        <h1>Welcome to Gii <small>a magical tool that can write code for you</small></h1>
14
    </div>
Qiang Xue committed
15

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

18 19 20 21 22 23 24 25 26
    <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
27

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

</div>