Last active
August 29, 2015 14:13
-
-
Save bravo-kernel/b1a53d1f6ca0529d071b to your computer and use it in GitHub Desktop.
Model less CakePHP3 form using Bootstrap-UI plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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