add.ctp
916 Bytes
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Categories'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Sur Categories'), ['controller' => 'SurCategories', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Sur Category'), ['controller' => 'SurCategories', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="categories form large-9 medium-8 columns content">
<?= $this->Form->create($category) ?>
<fieldset>
<legend><?= __('Add Category') ?></legend>
<?php
echo $this->Form->input('nom');
echo $this->Form->input('sur_categorie_id', ['options' => $surCategories]);
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>