You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					34 lines
				
				1010 B
			
		
		
			
		
	
	
					34 lines
				
				1010 B
			| 
											12 years ago
										 | <?php
 | ||
|  | use yii\helpers\Html;
 | ||
|  | 
 | ||
|  | /**
 | ||
|  |  * @var $this \yii\base\View
 | ||
|  |  * @var $content string
 | ||
|  |  * @var yii\gii\Generator[] $generators
 | ||
|  |  * @var yii\gii\Generator $activeGenerator
 | ||
|  |  */
 | ||
|  | $generators = Yii::$app->controller->module->generators;
 | ||
|  | $activeGenerator = Yii::$app->controller->generator;
 | ||
|  | $this->title = 'Welcome to Gii';
 | ||
|  | ?>
 | ||
|  | <div class="default-index">
 | ||
|  | 	<div class="page-header">
 | ||
| 
											12 years ago
										 | 		<h1>Welcome to Gii <small>a magic tool that can write code for you</small></h1>
 | ||
| 
											12 years ago
										 | 	</div>
 | ||
|  | 
 | ||
|  | 	<p class="lead">Start the fun with the following code generators:</p>
 | ||
|  | 
 | ||
|  | 	<div class="row">
 | ||
| 
											12 years ago
										 | 		<?php foreach ($generators as $id => $generator): ?>
 | ||
| 
											12 years ago
										 | 		<div class="generator col-lg-4">
 | ||
| 
											12 years ago
										 | 			<h3><?= Html::encode($generator->getName()) ?></h3>
 | ||
|  | 			<p><?= $generator->getDescription() ?></p>
 | ||
|  | 			<p><?= Html::a('Start »', ['default/view', 'id' => $id], ['class' => 'btn btn-default']) ?></p>
 | ||
| 
											12 years ago
										 | 		</div>
 | ||
|  | 		<?php endforeach; ?>
 | ||
|  | 	</div>
 | ||
|  | 
 | ||
|  | 	<p><a class="btn btn-success" href="http://www.yiiframework.com/extensions/?tag=gii">Get More Generators</a></p>
 | ||
|  | 
 | ||
|  | </div>
 |