summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes5
-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
5 files changed, 34 insertions, 7 deletions
diff --git a/.gitattributes b/.gitattributes
index da283469..b10b1d92 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -20,10 +20,11 @@ demos/controls/themes/BlueTheme/labels.skin -text
demos/controls/themes/BlueTheme/simple.css -text
demos/hangman/index.php -text
demos/hangman/protected/.htaccess -text
-demos/hangman/protected/pages/HomePage.php -text
-demos/hangman/protected/pages/HomePage.tpl -text
+demos/hangman/protected/pages/Home.page -text
+demos/hangman/protected/pages/Home.php -text
demos/hangman/protected/pages/Layout.php -text
demos/hangman/protected/pages/Layout.tpl -text
+demos/hangman/protected/pages/words.txt -text
demos/personal/index.php -text
demos/personal/protected/Data/application.xml -text
demos/personal/protected/Modules/DataModule.php -text
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