blob: 752b75b895864df8c4c691c6ee21d2f2e9abad84 (
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
  | 
<?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;
	}
}
  |