■control
$this->Form->control(‘item_category_id’, [‘label’ => [‘text’ => ‘カテゴリー選択’], ‘options’ => $itemCategories])
■input
$this->Form->input($key . ‘.no’, array_merge($input_set, [‘oninput’ => ‘input_set(‘ . $key . ‘)’]))
■hidden
$this->Form->hidden(‘chk_flg_’ . $key, [‘value’ => 0])
■checkbox
$this->Form->checkbox(‘all’, [‘style’=> ‘margin:0 0 0 0;’, ‘hiddenField’ => false, ‘checked’ => false, ‘onClick’ => ‘allchk(“item_chk[]”);’])
■image
$this->Html->image(“upload_img/” . $item->image, [‘style’ => ‘width:100px;height:auto;’])
■link
$this->Html->link(‘【カートを確認】’, [‘controller’ => ‘Carts’, ‘action’ => ‘index’])
■postLink
$this->Form->postLink(‘削除’, [‘action’ => ‘delete’, $item->id], [‘confirm’ => __(‘削除します # {0}?’, $item->name)])
■button
$this->Form->button(‘戻る’, [‘name’ => ‘back’, ‘style’ => ‘margin-right:1rem;’])
■element
$this->element(‘menu/menu’)
■親テーブルの値
h($item->item_category->name)
■create
<?= $this->Form->create(null, [‘url’ => [‘action’ => $act], ‘name’ => ‘index’]) ?><?= $this->Form->end() ?>
■foreach
<?php foreach ($items as $key => $item): ?><?php endforeach; ?>
■if
<?php if ($item->flg == 0): ?>あり<?php else: ?>なし<?php endif; ?>