summaryrefslogtreecommitdiff
path: root/demos/sqlmap/protected/pages/Sample/crud1.php
blob: 9ea6e05eba829a156ed77c6ffbef20ffa4e1de84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

Prado::using('Example.Person');

class crud1 extends TPage
{
    private function loadData()
    {
        $sqlmap = $this->Application->Modules['person-sample']->Client;
        $this->personList->DataSource = $sqlmap->queryForList('SelectAll');
		$this->personList->dataBind();
    }

	public function onLoad($param)
	{
		if(!$this->IsPostBack)
			$this->loadData();
	}
}

?>