Exemplo n.º 1
0
<div class="main-title">
    <h1><?php 
echo $this->title;
?>
</h1>
</div>

<div class="row">
    <div class="col-sm-6 col-sm-offset-3">

    <?php 
echo $form = new Form();
?>
    <?php 
echo $form->label('Username or Email')->inputText($model, 'Username');
?>
    <?php 
echo $form->password($model, 'Password');
?>
    <?php 
echo $form->checkBox($model, 'rememberMe');
?>
    <p class="text-right">
        <?php 
echo BaseHtml::a('Forgot your password?‎', ['reset-password']);
?>
<br />
        <?php 
echo BaseHtml::a('Have no an account?', ['register']);
?>
Exemplo n.º 2
0
 public function testLabel()
 {
     $this->assertEquals('<label>text label</label>', \Helpers\Form::label('text label'));
 }