diff options
author | wei <> | 2006-07-14 09:20:45 +0000 |
---|---|---|
committer | wei <> | 2006-07-14 09:20:45 +0000 |
commit | 4b78404c20490a615459267426ce9e6737bf4485 (patch) | |
tree | be68ab7a2155980b05e5ab9f454e991e93007563 /demos/sqlmap/protected/pages/Sample/crud1.php | |
parent | 143980b6dab8ad87c44518e5b7befb614fb83b85 (diff) |
Moving files.
Diffstat (limited to 'demos/sqlmap/protected/pages/Sample/crud1.php')
-rw-r--r-- | demos/sqlmap/protected/pages/Sample/crud1.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/demos/sqlmap/protected/pages/Sample/crud1.php b/demos/sqlmap/protected/pages/Sample/crud1.php new file mode 100644 index 00000000..40733dc9 --- /dev/null +++ b/demos/sqlmap/protected/pages/Sample/crud1.php @@ -0,0 +1,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();
+ }
+}
+
+?>
\ No newline at end of file |