summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TForm.php
diff options
context:
space:
mode:
authoruacaman <>2011-05-04 20:49:27 +0000
committeruacaman <>2011-05-04 20:49:27 +0000
commitff3de9649f1b9ce04f685d25e3df2277927e7ff7 (patch)
tree287a96e2ace7ecd414a5a831213482b6eaa1a1d1 /framework/Web/UI/TForm.php
parent39f417b6977a3264d5df16f383d8ba0b182b229a (diff)
Issue 234:
Controls now honor THttpResponse configured HtmlWriterType.
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r--framework/Web/UI/TForm.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php
index 2356a733..ee845ed5 100644
--- a/framework/Web/UI/TForm.php
+++ b/framework/Web/UI/TForm.php
@@ -73,9 +73,9 @@ class TForm extends TControl
{
$page=$this->getPage();
$page->beginFormRender($writer);
- $textWriter=new TTextWriter;
- $this->renderChildren(new THtmlWriter($textWriter));
- $content=$textWriter->flush();
+ $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
+ $this->renderChildren( $htmlWriter );
+ $content = $htmlWriter->flush();
$page->endFormRender($writer);
$this->addAttributesToRender($writer);