cakephp-adminlte-theme
cakephp-adminlte-theme copied to clipboard
CakePHP 3 horizontal form
how to configure form-horizontal using cakephp 3.
Hi @veera1908 I'm sorry by a long time to answer you. I don't use horizontal form, but I'll test, and if it's not able yet, in next release It will be.
this is CakePHP 3.7 code for form horizontal
Form->create($user, ['role' => 'form', 'class' => 'form-horizontal']); ?><div class="box-body">
<?php
echo $this->Form->control('user_full_name', ['label' => 'User Name']);
echo $this->Form->control('username', ['label' => 'Login ID']);
echo $this->Form->control('user_email', ['label' => 'User Email']);
echo $this->Form->control('user_mobile_no', ['label' => 'User Mobile No.']);
echo $this->Form->control('password', ['type' => 'password', 'label' => 'User Password']);
?>
</div>
<!-- /.box-body -->
<?php
echo $this->Form->submit(__('Submit'));
?>
Form->end(); ?>
While this issue is fixed, it's possible to use the Bootstrap Form Helper instead of the AdminLTE one?
EDIT: after a quick test it seems to work fine.
Testing in this link
can you share the code to test the code in the project
@veera1908
https://gist.github.com/maiconpinto/c906bdad08ea6646ed5ea77950e25bb0