Skip to content

Instantly share code, notes, and snippets.

@bravo-kernel
Last active August 29, 2015 14:13
Show Gist options
  • Save bravo-kernel/b1a53d1f6ca0529d071b to your computer and use it in GitHub Desktop.
Save bravo-kernel/b1a53d1f6ca0529d071b to your computer and use it in GitHub Desktop.
Model less CakePHP3 form using Bootstrap-UI plugin
$form = new SiteFileForm();
echo $this->Form->create($form, [
'url' => ['controller' => 'sitefiles', 'action' => 'ajax_add.json'],
['id' => 'form-submit']
]);
echo $this->Form->input('url', [
'label' => ['class' => 'control-label']
]);
echo $this->Form->input('webroot', [
'label' => ['class' => 'control-label']
]);
echo $this->Form->end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment