diff options
author | uacaman <> | 2011-05-04 20:49:27 +0000 |
---|---|---|
committer | uacaman <> | 2011-05-04 20:49:27 +0000 |
commit | ff3de9649f1b9ce04f685d25e3df2277927e7ff7 (patch) | |
tree | 287a96e2ace7ecd414a5a831213482b6eaa1a1d1 /framework/Web/UI/TForm.php | |
parent | 39f417b6977a3264d5df16f383d8ba0b182b229a (diff) |
Issue 234:
Controls now honor THttpResponse configured HtmlWriterType.
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r-- | framework/Web/UI/TForm.php | 6 |
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);
|