summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php
blob: 18005a2b961782257e764d90501cdb1ac36036db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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->NewWriter);

		$this->label1->Text .= " using callback!";
		$this->label1->Text .= "... and this is the textbox text: ". $this->foo->Text;
	}

}

?>