EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 /* @var $this SiteController */
3 
4 $this->pageTitle=Yii::app()->name;
5 ?>
6 
7 <h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
8 
9 <p>Congratulations! You have successfully created your Yii application.</p>
10 
11 <p>You may change the content of this page by modifying the following two files:</p>
12 <ul>
13  <li>View file: <code><?php echo __FILE__; ?></code></li>
14  <li>Layout file: <code><?php echo $this->getLayoutFile('main'); ?></code></li>
15 </ul>
16 
17 <div class="form">
18 <?php $form=$this->beginWidget('CActiveForm', array(
19  'id'=>'login-form',
20  'enableClientValidation'=>true,
21  'clientOptions'=>array(
22  'validateOnSubmit'=>true,
23  ),
24 )); ?>
25 
26  <p class="note">Fields with <span class="required">*</span> are required.</p>
27 
28  <div class="row">
29  <?php echo $form->labelEx($model,'username'); ?>
30  <?php echo $form->textField($model,'username'); ?>
31  <?php echo $form->error($model,'username'); ?>
32  </div>
33 
34  <div class="row">
35  <?php echo $form->labelEx($model,'password'); ?>
36  <?php echo $form->passwordField($model,'password'); ?>
37  <?php echo $form->error($model,'password'); ?>
38  <p class="hint">
39  Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
40  </p>
41  </div>
42 
43  <div class="row rememberMe">
44  <?php echo $form->checkBox($model,'rememberMe'); ?>
45  <?php echo $form->label($model,'rememberMe'); ?>
46  <?php echo $form->error($model,'rememberMe'); ?>
47  </div>
48 
49  <div class="row buttons">
50  <?php echo CHtml::submitButton('Login'); ?>
51  </div>
52 
53 <?php $this->endWidget(); ?>
54 </div><!-- form -->
55 
56 <p>For more details on how to further develop this application, please read
57 the <a href="http://www.yiiframework.com/doc/">documentation</a>.
58 Feel free to ask in the <a href="http://www.yiiframework.com/forum/">forum</a>,
59 should you have any questions.</p>