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