diff options
author | wei <> | 2006-08-11 05:05:32 +0000 |
---|---|---|
committer | wei <> | 2006-08-11 05:05:32 +0000 |
commit | b687748278d29510bb28875627c98b5da0a96cc5 (patch) | |
tree | 6d4f4b89027129530eae6d6aaf9c96c18b5ad8e2 /tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php | |
parent | deb09283421970296b7ec6931d9eab3529be44ed (diff) |
Fixed callback replace content.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php new file mode 100644 index 00000000..753de25c --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php @@ -0,0 +1,27 @@ +<?php
+
+class CustomTemplateControlTest extends TPage
+{
+ function button2_onclick($sender, $param)
+ {
+
+ $this->label1->Text = "Button 1 was clicked ";
+ $this->label1->Text .= $this->foo->Text;
+
+ $x=Prado::createComponent('Application.pages.CustomTemplateComponent');
+
+ $this->placeholder->getControls()->add($x);
+ $this->placeholder->dataBind();
+ }
+
+ function button2_callback($sender, $param)
+ {
+ $this->placeholder->render($param->output);
+
+ $this->label1->Text .= " using callback!";
+ $this->label1->Text .= "... and this is the textbox text: ". $this->foo->Text;
+ }
+
+}
+
+?>
\ No newline at end of file |