diff options
Diffstat (limited to 'demos/sqlmap-sample/protected/pages/ProductList.php')
-rw-r--r-- | demos/sqlmap-sample/protected/pages/ProductList.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/sqlmap-sample/protected/pages/ProductList.php b/demos/sqlmap-sample/protected/pages/ProductList.php new file mode 100644 index 00000000..a35c40ea --- /dev/null +++ b/demos/sqlmap-sample/protected/pages/ProductList.php @@ -0,0 +1,18 @@ +<?php
+
+class ProductList extends TPage
+{
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if(!$this->IsPostBack)
+ {
+ $sqlmap = $this->Application->Modules['petshop-sqlmap'];
+ $products = $sqlmap->queryForList('SelectAllProducts');
+ $this->productList->setDataSource($products);
+ $this->productList->dataBind();
+ }
+ }
+}
+
+?>
\ No newline at end of file |