summaryrefslogtreecommitdiff
path: root/demos/helloworld/protected/pages
diff options
context:
space:
mode:
authorxue <>2006-04-02 00:34:32 +0000
committerxue <>2006-04-02 00:34:32 +0000
commit87aaba0aa45ea3ead27966923fa5702817731e7d (patch)
tree9faf6bc41bdbceb9ce3381d465f0b48fdbc979c3 /demos/helloworld/protected/pages
parent2f36ce50b85cf0d02174464356e6636d14f4c19a (diff)
Added hello world demo.
Diffstat (limited to 'demos/helloworld/protected/pages')
-rw-r--r--demos/helloworld/protected/pages/Home.page16
-rw-r--r--demos/helloworld/protected/pages/Home.php11
2 files changed, 27 insertions, 0 deletions
diff --git a/demos/helloworld/protected/pages/Home.page b/demos/helloworld/protected/pages/Home.page
new file mode 100644
index 00000000..97702e67
--- /dev/null
+++ b/demos/helloworld/protected/pages/Home.page
@@ -0,0 +1,16 @@
+<html>
+
+<head>
+<title>Hello World Demo - Prado</title>
+</head>
+
+<body>
+
+<com:TForm>
+
+<com:TButton Text="Click me" OnClick="buttonClicked" />
+
+</com:TForm>
+
+</body>
+</html> \ No newline at end of file
diff --git a/demos/helloworld/protected/pages/Home.php b/demos/helloworld/protected/pages/Home.php
new file mode 100644
index 00000000..432c2ee7
--- /dev/null
+++ b/demos/helloworld/protected/pages/Home.php
@@ -0,0 +1,11 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $sender->Text="Hello World!";
+ }
+}
+
+?> \ No newline at end of file