The Yii2 framework provides a built-in helper class named Yii\helpers\Html, which includes a SubmitButton method. This method can be used to generate an HTML form submit button.
Example 1: Generate a basic Submit button
In this example, the Submit Button is generated with the default name and value of "Submit".
Example 2: Generate a Submit button with custom name and value
'save-button','value' => 'save']); ?>
In this example, we have specified custom name and value attributes for the Submit button.
The Html SubmitButton helper method is part of the Yii2 Core library.
PHP yii\helpers Html::submitButton - 30 examples found. These are the top rated real world PHP examples of yii\helpers\Html::submitButton extracted from open source projects. You can rate examples to help us improve the quality of examples.