Added new (clean) yii boilerplate
This commit is contained in:
5
framework/gii/views/default/error.php
Normal file
5
framework/gii/views/default/error.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Error <?php echo $code; ?></h1>
|
||||
|
||||
<div class="error">
|
||||
<?php echo CHtml::encode($message); ?>
|
||||
</div>
|
||||
11
framework/gii/views/default/index.php
Normal file
11
framework/gii/views/default/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<h1>Welcome to Yii Code Generator!</h1>
|
||||
|
||||
<p>
|
||||
You may use the following generators to quickly build up your Yii application:
|
||||
</p>
|
||||
<ul>
|
||||
<?php foreach($this->module->controllerMap as $name=>$config): ?>
|
||||
<li><?php echo CHtml::link(ucwords(CHtml::encode($name).' generator'),array($name.'/index'));?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
11
framework/gii/views/default/login.php
Normal file
11
framework/gii/views/default/login.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<div class="form login">
|
||||
<?php $form=$this->beginWidget('CActiveForm'); ?>
|
||||
<p>Please enter your password</p>
|
||||
|
||||
<?php echo $form->passwordField($model,'password'); ?>
|
||||
<?php echo $form->error($model,'password'); ?>
|
||||
|
||||
<?php echo CHtml::submitButton('Enter'); ?>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
</div><!-- form -->
|
||||
Reference in New Issue
Block a user