summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.php
blob: 27c026d6fa38059e774b1675b0a33bce485b2dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

Prado::using('System.Web.UI.TCommandEventParameter');


class Home extends TPage
{
	public function buttonClicked($sender,$param)
	{
		if($param instanceof TCommandEventParameter)
			$sender->Text="Name: {$param->CommandName}, Param: {$param->CommandParameter}";
		else
			$sender->Text="I'm clicked";
	}
}