PHP Classes

File: app/Views/Admin/Users/new.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Task App   app/Views/Admin/Users/new.php   Download  
File: app/Views/Admin/Users/new.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Task App
Create and manage tasks to be done
Author: By
Last change:
Date: 17 days ago
Size: 702 bytes
 

Contents

Class file image Download
<?= $this->extend("base"); ?>

<?= $this->section("title"); ?>Add new user<?= $this->endSection(); ?>

<?= $this->section("content"); ?>

<h1 class="title">Add new user</h1>

<?php if (session()->has('errors')) : ?>
<ul>
        <?php foreach (session('errors') as $error) : ?>
<li><?= $error; ?></li>
        <?php endforeach; ?>
</ul>
<?php endif; ?>

<div class="container">
    <?= form_open("/admin/users/create"); ?>

    <?= $this->include('/Admin/Users/form'); ?>

    <button class="button is-primary" type="submit">Save</button>
    <a class="button is-danger" href="<?= site_url("/admin/users"); ?>">Cancle</a>

    <?= form_close() ?>
</div>

<?= $this->endSection(); ?>