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

class Home extends TPage
{
	function check_validate($sender, $params)
	{
		$sender->enabled = $this->check1->checked;
	}

	function onPreRender($param)
	{
		//always re-enable the validator2 so as to display the client-side validator
		$this->validator2->enabled=true;
	}
}

?>