blob: 40733dc99b3d27eb3216df88323f2f6a70274ddc (
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'];
        $this->personList->DataSource = $sqlmap->queryForList('SelectAll');
        $this->personList->dataBind();
    }
	public function onLoad($param)
	{		
		if(!$this->IsPostBack)
			$this->loadData();
	}
}
?>
 |