Skip to content

Instantly share code, notes, and snippets.

View PoeticIntensity's full-sized avatar

PoeticIntensity

View GitHub Profile
object(App\Model\Entity\User) {
'new' => true,
'accessible' => [
'password' => '*****',
'username' => true,
'last_login' => true,
'last_ip' => true,
'type' => true,
'admins' => true,
<div class="admins form">
<?= $this->Form->create($admin); ?>
<fieldset>
<legend><?= __('Add Admin'); ?></legend>
<?php
echo $this->Form->input('first_name');
echo $this->Form->input('last_name');
echo $this->Form->input('email');
echo $this->Form->input('phone');
echo $this->Form->input('is_super');