results.php 473 Bytes
Newer Older
Qiang Xue committed
1 2
<?php
/**
Alexander Makarov committed
3
 * @var yii\web\View $this
Qiang Xue committed
4 5 6 7 8 9 10 11 12 13 14 15 16
 * @var yii\gii\Generator $generator
 * @var string $results
 * @var boolean $hasError
 */
?>
<div class="default-view-results">
	<?php
	if ($hasError) {
		echo '<div class="alert alert-danger">There was something wrong when generating the code. Please check the following messages.</div>';
	} else {
		echo '<div class="alert alert-success">' . $generator->successMessage() . '</div>';
	}
	?>
Alexander Makarov committed
17
	<pre><?= nl2br($results) ?></pre>
Qiang Xue committed
18
</div>