summaryrefslogtreecommitdiff
path: root/demos/hangman
diff options
context:
space:
mode:
authorxue <>2005-12-23 03:33:21 +0000
committerxue <>2005-12-23 03:33:21 +0000
commit925c51d0b63b61340ef89462e32e5fb784165428 (patch)
tree58fbd1918fb4a41400e6ff4fb1d3d7deebe36b4c /demos/hangman
parentae8311e9de8d9d467506b74d387500956f164d4d (diff)
Diffstat (limited to 'demos/hangman')
-rw-r--r--demos/hangman/index.php5
-rw-r--r--demos/hangman/protected/pages/Home.page (renamed from demos/hangman/protected/pages/HomePage.tpl)2
-rw-r--r--demos/hangman/protected/pages/Home.php (renamed from demos/hangman/protected/pages/HomePage.php)2
-rw-r--r--demos/hangman/protected/pages/words.txt27
4 files changed, 31 insertions, 5 deletions
diff --git a/demos/hangman/index.php b/demos/hangman/index.php
index af488b0a..97d015b6 100644
--- a/demos/hangman/index.php
+++ b/demos/hangman/index.php
@@ -1,8 +1,7 @@
<?php
-$basePath=dirname(__FILE__);
-require_once($basePath.'/../../framework/prado.php');
-$application=new TApplication($basePath.'/protected/data/application.xml');
+require_once(dirname(__FILE__).'/../../framework/prado.php');
+$application=new TApplication;
$application->run();
?> \ No newline at end of file
diff --git a/demos/hangman/protected/pages/HomePage.tpl b/demos/hangman/protected/pages/Home.page
index 69f7f4d2..03aed1d3 100644
--- a/demos/hangman/protected/pages/HomePage.tpl
+++ b/demos/hangman/protected/pages/Home.page
@@ -1,4 +1,4 @@
-<%@ MasterClass="Pages.Layout" Title="Prado Hangman Game" %>
+<%@ MasterClass="Application.pages.Layout" Title="Prado Hangman Game" %>
<com:TContent ID="body" >
<com:TForm>
<h1>Prado Hangman Game</h1>
diff --git a/demos/hangman/protected/pages/HomePage.php b/demos/hangman/protected/pages/Home.php
index 6e0388bc..0c87d12f 100644
--- a/demos/hangman/protected/pages/HomePage.php
+++ b/demos/hangman/protected/pages/Home.php
@@ -1,6 +1,6 @@
<?php
-class HomePage extends TPage
+class Home extends TPage
{
const EASY_LEVEL=10;
const MEDIUM_LEVEL=5;
diff --git a/demos/hangman/protected/pages/words.txt b/demos/hangman/protected/pages/words.txt
new file mode 100644
index 00000000..80814580
--- /dev/null
+++ b/demos/hangman/protected/pages/words.txt
@@ -0,0 +1,27 @@
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+PRADO is an event-driven and component-based framework
+for Web application development in PHP 5.
+
+Components following the PRADO protocol are highly
+configurable and reusable. Properties defining
+the basic features of a component can be configured
+in specifications, templates or code.
+New components can be developed by either inheriting
+an existing component class or composing several
+components together. The work of using a component
+amounts to placing the component tag on the page template,
+configuring component properties, and writing handler
+functions to respond to component events.
+
+PRADO shares many similarities with ASP.NET and other
+RAD tools for Windows GUI development, such as Borland Delphi.
+In particular, it supports event-driven programming,
+viewstate maintenance, javascript, template, form validations, etc. \ No newline at end of file