※リストが表示されない場合
AddBlockなどの広告ブロックツールがONになっているとリストなどが表示されない場合があります。これらのツールをOFFにしてみてください。
※コントローラー側のアクションメソッド public function add() { $person = $this->Persons->newEntity(); $this->set('person', $person); if ($this->request->is('post')) { $person = $this->Persons->patchEntity($person, $this->request->data); if ($this->Persons->save($person)) { return $this->redirect(['action' => 'index']); } } } ※テンプレート <div> <h3>Add Person</h3> <?= $this->Form->create($person) ?> <fieldset> <?php echo $this->Form->input('name'); echo $this->Form->input('age'); echo $this->Form->input('mail'); ?> </fieldset> <?= $this->Form->button('Submit') ?> <?= $this->Form->end() ?> </div>
<< 前へ | 次へ >> |