blob: fe1131b8ce3df57e1ceb9a6015896c8f47a0e167 (
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();
}
}
?>
|