How can I create submit button, and define custom title on it, together with custom class style?
相关问题
- Laravel Option Select - Default Issue
- HTML form is not sending $_POST values
- How to use Control.FromHandle?
- Xamarin. The name 'authorEntry does not exist
- HTML <form> tag causing Rails form to submit
相关文章
- Show a different value from an input that what wil
- How can I detect/watch “dirty-status” of an angula
- Why form submit opens new window/tab?
- Setting Angular 2 FormArray value in ReactiveForm?
- Rails: Using form fields that are unassociated wit
- How to force refresh of images & css files in Cake
- How to get the “value” of a FilteringSelect <se
- Cookie vs. Session based flash message
I created a custom button using an image in my under app/webroot/img that uses inline style for specifying size and changing the position to center
Also remember, you can always do it old school
I prefer to use
$this->Form->end( );
without arguments and build my own submit buttons and markup. It's easyI would also tell you to experiment with the
$this->Form->input('Model.field', 'options' => array( array('type' => 'button')));
- particularly the before, between, after, and class options. You can use the helper to create<input type="button" />
elements with a good amount of flexibility.Or you can combine both with:
For CakePHP 2.x, you can use
This is enough:
Also as @Mike suggest close the form with
You could use either
submit()
orbutton()
methods of the Form helper instead of theend()
method. For example:Don't forget to close the form. You can do it by calling the
end()
method without any arguments.