summaryrefslogtreecommitdiff
path: root/demos/sqlmap/protected/pages/Sample/crud1.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/sqlmap/protected/pages/Sample/crud1.php')
-rw-r--r--demos/sqlmap/protected/pages/Sample/crud1.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/sqlmap/protected/pages/Sample/crud1.php b/demos/sqlmap/protected/pages/Sample/crud1.php
index 40733dc9..9ea6e05e 100644
--- a/demos/sqlmap/protected/pages/Sample/crud1.php
+++ b/demos/sqlmap/protected/pages/Sample/crud1.php
@@ -6,13 +6,13 @@ class crud1 extends TPage
{
private function loadData()
{
- $sqlmap = $this->Application->Modules['person-sample'];
+ $sqlmap = $this->Application->Modules['person-sample']->Client;
$this->personList->DataSource = $sqlmap->queryForList('SelectAll');
- $this->personList->dataBind();
+ $this->personList->dataBind();
}
public function onLoad($param)
- {
+ {
if(!$this->IsPostBack)
$this->loadData();
}