Exemplo n.º 1
0
<?php

/** @var Models\ViewModels\UserViewModel */
?>
<section class="bg-3">
    <div class="row">
        <div class="col-lg-6 col-lg-offset-3">

            <?php 
echo Framework\ViewHelpers\FormViewHelper::init()->setAction("")->setMethod("post")->setClasses("form col-lg-12 center-block")->initTextField()->setName("username")->setClasses("form-group form-control input-lg")->setAttribute("placeholder", "Username")->create()->initPasswordField()->setName("password")->setClasses("form-group form-control input-lg")->setAttribute("placeholder", "Password")->create()->initSubmit()->setClasses("btn btn-primary btn-lg btn-block")->setValue("Login")->create()->render();
?>

        </div>
    </div>
</section>
<?php

include "Framework/ViewHelpers/FormViewHelper.php";
include "Framework/ViewHelpers/Elements/Element.php";
include "Framework/ViewHelpers/Elements/TextField.php";
include "Framework/ViewHelpers/Elements/PasswordField.php";
include "Framework/ViewHelpers/Elements/Submit.php";
?>
<h1>Register Form</h1>

<section class="bg-1">
    <div class="row">
        <div class="col-lg-6 col-lg-offset-3">

            <?php 
echo Framework\ViewHelpers\FormViewHelper::init()->setAction("")->setMethod("post")->initTextField()->setName("username")->setAttribute("placeholder", "Username")->create()->initPasswordField()->setName("password")->setAttribute("placeholder", "Password")->create()->initPasswordField()->setName("confirm")->setAttribute("placeholder", "Confirm Password")->create()->initSubmit()->setValue("Register")->create()->render();
?>
        </div>
    </div>
</section>