textarea shows no content

This one works: {{ content1 }} This one gives textarea with test as content: <textarea>test</textarea>

These 2 give a textarea without the content??? {{ text_area("comment", "This is the content", "cols": "6", "rows": 20) }} <?php echo Phalcon\Tag::textArea(array( "comment", "test", "cols" => "6", "rows" => 20 )) ?>

many thanks Raymond



2.9k

Now using <textarea>{{ comment }}</textarea>



84.4k

It must be:

{{ text_area("comment", "value": "This is the content", "cols": 6, "rows": 20) }}


5.5k
edited Apr '14

Note that the use of textarea is not properly documented @ http://docs.phalconphp.com/en/latest/reference/tags.html (Lack of the 'value' key.)

Also, a textarea doesn't have a 'value' attribute, but Phalcon does set this (next to using the value of 'value' for setting the content of the textarea element).

Edit: created an issue for this: https://github.com/phalcon/cphalcon/issues/2357