我在我的片段中尝试下面的代码,但是当我调试应用程序崩溃时。
公共类ChatFragment扩展了Fragment {
<?= $this->Form->create($message, ['class' => 'form-group']) ?>
<?= $this->Form->input('name', ['value' => $form['name']]) ?>
<?= $this->Form->input('email', ['value' => $form['email']]) ?>
<?= $this->Form->input('message', ['value' => $form['message']]); ?>
<?= $this->Form->button('Submit', ['class' => 'btn btn-primary btn-lg btn-block']) ?>
<?= $this->Form->end() ?>