summaryrefslogtreecommitdiff
path: root/demos/helloworld/protected/pages/Home.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/helloworld/protected/pages/Home.php')
-rw-r--r--demos/helloworld/protected/pages/Home.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/demos/helloworld/protected/pages/Home.php b/demos/helloworld/protected/pages/Home.php
index 9722a782..16174b2e 100644
--- a/demos/helloworld/protected/pages/Home.php
+++ b/demos/helloworld/protected/pages/Home.php
@@ -2,18 +2,9 @@
class Home extends TPage
{
- public function onPreRender($param)
- {
- echo "token is |".$this->Captcha->Token."|";
- }
-
public function buttonClicked($sender,$param)
{
- if($this->Captcha->validate($this->Input->Text))
- $sender->Text="ok";
- else
- $sender->Text="no!";
- $this->Captcha->regenerateToken();
+ $sender->Text='Hello world!';
}
}