beginForm() public static method
Generates a form start tag. See also endForm().
public static string beginForm ( $action = '', $method = 'post', $options = [] )$action
array|string
The form action URL. This parameter will be processed by yii\helpers\Url::to(). $method string
The form submission method, such as "post", "get", "put", "delete" (case-insensitive). Since most browsers only support "post" and "get", if other methods are given, they will be simulated using "post", and a hi