How can I create submit button, and define custom title on it, together with custom class style?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.