@@ 38-44 (lines=7) @@ | ||
35 | * @return string |
|
36 | * @static |
|
37 | */ |
|
38 | public static function beginForm($action, $method = 'POST', array $attributes = []) |
|
39 | { |
|
40 | $attributes['action'] = $action; |
|
41 | $attributes['method'] = $method; |
|
42 | ||
43 | return static::openTag('form', $attributes); |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * Render end form tag |
|
@@ 105-111 (lines=7) @@ | ||
102 | * @return string |
|
103 | * @static |
|
104 | */ |
|
105 | public static function textArea($name, $text, array $attributes = []) |
|
106 | { |
|
107 | $attributes['id'] = $name; |
|
108 | $attributes['name'] = $name; |
|
109 | ||
110 | return static::openTag('textarea', $attributes) . $text . static::closeTag('textarea'); |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * Render legend tag |