PHP Classes

File: app/Views/templates/user/show.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   PHP MVC App   app/Views/templates/user/show.php   Download  
File: app/Views/templates/user/show.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MVC App
MVC based application for the Web and as an API
Author: By
Last change:
Date: 12 days ago
Size: 756 bytes
 

Contents

Class file image Download
<div class="container">
    <h1>Detalhes do Usuário</h1>

    <?php if ($flash = \App\Core\Flash::get($_ENV['FLASH_MESSAGE_KEY'])): ?>
<?php foreach ($flash as $type => $message): ?>
<div class="<?php echo $h($type); ?>">
            <?php echo $h($message); ?>
</div>
        <?php endforeach; ?>
<?php endif; ?>

    <p><strong>UUID:</strong> <?php echo $h($user->getUuid()); ?></p>
    <p><strong>Nome:</strong> <?php echo $h($user->getName()); ?></p>
    <p><strong>E-mail:</strong> <?php echo $h($user->getEmail()); ?></p>
    <p><strong>Criado em:</strong> <?php echo $h($user->getCreatedAt()); ?></p>

    <a href="/user/edit/<?php echo $h($user->getUuid()); ?>">Editar</a>
    <a href="/">Voltar para a Lista</a>
</div>