summaryrefslogtreecommitdiff
path: root/demos/sqlmap/protected/pages/Sample/crud1.php
blob: 42268c4c0f94be30f4886de5dfe6cde11af48200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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();
	}
}