|
@@ 1767-1773 (lines=7) @@
|
| 1764 |
|
* @return string A generated HTML text input element |
| 1765 |
|
* @link https://book.cakephp.org/3/en/views/helpers/form.html#creating-textareas |
| 1766 |
|
*/ |
| 1767 |
|
public function textarea($fieldName, array $options = []) |
| 1768 |
|
{ |
| 1769 |
|
$options = $this->_initInputField($fieldName, $options); |
| 1770 |
|
unset($options['type']); |
| 1771 |
|
|
| 1772 |
|
return $this->widget('textarea', $options); |
| 1773 |
|
} |
| 1774 |
|
|
| 1775 |
|
/** |
| 1776 |
|
* Creates a hidden input field. |
|
@@ 1812-1820 (lines=9) @@
|
| 1809 |
|
* @return string A generated file input. |
| 1810 |
|
* @link https://book.cakephp.org/3/en/views/helpers/form.html#creating-file-inputs |
| 1811 |
|
*/ |
| 1812 |
|
public function file($fieldName, array $options = []) |
| 1813 |
|
{ |
| 1814 |
|
$options += ['secure' => true]; |
| 1815 |
|
$options = $this->_initInputField($fieldName, $options); |
| 1816 |
|
|
| 1817 |
|
unset($options['type']); |
| 1818 |
|
|
| 1819 |
|
return $this->widget('file', $options); |
| 1820 |
|
} |
| 1821 |
|
|
| 1822 |
|
/** |
| 1823 |
|
* Creates a `<button>` tag. |