summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes10
-rw-r--r--buildscripts/texbuilder/build.php6
-rw-r--r--demos/quickstart/protected/controls/TopicList.tpl4
-rw-r--r--demos/quickstart/protected/pages/Controls/HtmlArea.page2
-rw-r--r--demos/quickstart/protected/pages/Fundamentals/HelloWorld.page31
-rw-r--r--demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page6
-rw-r--r--demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php11
-rw-r--r--demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gifbin5557 -> 0 bytes
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/AboutPrado.page50
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/HelloWorld.page72
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/Installation.page19
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/Upgrading.page31
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/directory.gifbin0 -> 2685 bytes
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/sequence.gifbin0 -> 5793 bytes
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/sequence.vsd (renamed from demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd)bin143360 -> 143872 bytes
-rw-r--r--tests/FunctionalTests/quickstart/Fundamentals/HelloWorldTestCase.php16
16 files changed, 152 insertions, 106 deletions
diff --git a/.gitattributes b/.gitattributes
index 86767d26..d131ec36 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -268,17 +268,12 @@ demos/quickstart/protected/pages/Fundamentals/Architecture.page -text
demos/quickstart/protected/pages/Fundamentals/Components.page -text
demos/quickstart/protected/pages/Fundamentals/Controls.page -text
demos/quickstart/protected/pages/Fundamentals/Hangman.page -text
-demos/quickstart/protected/pages/Fundamentals/HelloWorld.page -text
demos/quickstart/protected/pages/Fundamentals/Modules.page -text
demos/quickstart/protected/pages/Fundamentals/Pages.page -text
demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/Home.page -text
demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/Home.php -text
demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/sequence.vsd -text
demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/words.txt -text
-demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page -text
-demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php -text
-demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif -text
-demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd -text
demos/quickstart/protected/pages/Fundamentals/Samples/config.xml -text
demos/quickstart/protected/pages/Fundamentals/Services.page -text
demos/quickstart/protected/pages/Fundamentals/applifecycles.gif -text
@@ -291,9 +286,13 @@ demos/quickstart/protected/pages/Fundamentals/lifecycles.vsd -text
demos/quickstart/protected/pages/Fundamentals/objectdiagram.gif -text
demos/quickstart/protected/pages/Fundamentals/objectdiagram.vsd -text
demos/quickstart/protected/pages/GettingStarted/AboutPrado.page -text
+demos/quickstart/protected/pages/GettingStarted/HelloWorld.page -text
demos/quickstart/protected/pages/GettingStarted/Installation.page -text
demos/quickstart/protected/pages/GettingStarted/Introduction.page -text
demos/quickstart/protected/pages/GettingStarted/Upgrading.page -text
+demos/quickstart/protected/pages/GettingStarted/directory.gif -text
+demos/quickstart/protected/pages/GettingStarted/sequence.gif -text
+demos/quickstart/protected/pages/GettingStarted/sequence.vsd -text
demos/quickstart/protected/pages/ViewSource.page -text
demos/quickstart/protected/pages/ViewSource.php -text
demos/quickstart/protected/pages/config.xml -text
@@ -1074,7 +1073,6 @@ tests/FunctionalTests/quickstart/Controls/Repeater3TestCase.php -text
tests/FunctionalTests/quickstart/Controls/TableTestCase.php -text
tests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php -text
tests/FunctionalTests/quickstart/Fundamentals/HangmanTestCase.php -text
-tests/FunctionalTests/quickstart/Fundamentals/HelloWorldTestCase.php -text
tests/FunctionalTests/selenium/SeleneseRunner.html -text
tests/FunctionalTests/selenium/SeleniumLog.html -text
tests/FunctionalTests/selenium/TestRunner-splash.html -text
diff --git a/buildscripts/texbuilder/build.php b/buildscripts/texbuilder/build.php
index 7395406c..4988bccd 100644
--- a/buildscripts/texbuilder/build.php
+++ b/buildscripts/texbuilder/build.php
@@ -14,7 +14,10 @@ $base = realpath(dirname(__FILE__).'/../../demos/quickstart/protected/pages/');
$pages['Getting Started'] = array(
'GettingStarted/Introduction.page',
'GettingStarted/AboutPrado.page',
- 'GettingStarted/Installation.page');
+ 'GettingStarted/Installation.page',
+ 'GettingStarted/HelloWorld.page',
+ 'GettingStarted/Upgrading.page'
+ );
$pages['Fundamentals'] = array(
'Fundamentals/Architecture.page',
@@ -24,7 +27,6 @@ $pages['Fundamentals'] = array(
'Fundamentals/Modules.page',
'Fundamentals/Services.page',
'Fundamentals/Applications.page',
- 'Fundamentals/HelloWorld.page',
'Fundamentals/Hangman.page');
$pages['Configurations'] = array(
diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl
index 254d67ad..d2cde711 100644
--- a/demos/quickstart/protected/controls/TopicList.tpl
+++ b/demos/quickstart/protected/controls/TopicList.tpl
@@ -6,7 +6,8 @@
<li><a href="?page=GettingStarted.Introduction">Introduction</a></li>
<li><a href="?page=GettingStarted.AboutPrado">What is PRADO?</a></li>
<li><a href="?page=GettingStarted.Installation">Installation</a></li>
- <li><a href="?page=GettingStarted.Upgrading">Upgrading from Earlier Versions</a></li>
+ <li><a href="?page=GettingStarted.HelloWorld">Creating First PRADO Application</a></li>
+ <li><a href="?page=GettingStarted.Upgrading">Upgrading from v2.x and v1.x</a></li>
</ul>
</div>
@@ -20,7 +21,6 @@
<li><a href="?page=Fundamentals.Modules">Modules</a></li>
<li><a href="?page=Fundamentals.Services">Services</a></li>
<li><a href="?page=Fundamentals.Applications">Applications</a></li>
- <li><a href="?page=Fundamentals.HelloWorld">Sample: Hello World</a></li>
<li><a href="?page=Fundamentals.Hangman">Sample: Hangman Game</a></li>
</ul>
</div>
diff --git a/demos/quickstart/protected/pages/Controls/HtmlArea.page b/demos/quickstart/protected/pages/Controls/HtmlArea.page
index 9f96f404..0af685d5 100644
--- a/demos/quickstart/protected/pages/Controls/HtmlArea.page
+++ b/demos/quickstart/protected/pages/Controls/HtmlArea.page
@@ -28,7 +28,6 @@ The client-side visual editting capability is supported by Internet Explorer 5.0
</p>
<pre>
-<code>
Windows XP MacOS X 10.4
----------------------------------------------------
MSIE 6 OK
@@ -42,7 +41,6 @@ Opera 9 Preview 1 OK(1) OK(1)
----------------------------------------------------
(1) - Partialy working
----------------------------------------------------
-</code>
</pre>
<com:RunBar PagePath="Controls.Samples.THtmlArea.Home" />
diff --git a/demos/quickstart/protected/pages/Fundamentals/HelloWorld.page b/demos/quickstart/protected/pages/Fundamentals/HelloWorld.page
deleted file mode 100644
index 572c6766..00000000
--- a/demos/quickstart/protected/pages/Fundamentals/HelloWorld.page
+++ /dev/null
@@ -1,31 +0,0 @@
-<com:TContent ID="body" >
-<h1>Sample: Hello World</h1>
-<p>
-"Hello World" perhaps is the simplest <i>interactive</i> PRADO application that you can build. It displays to end-users a page with a submit button whose caption is <i>Click Me</i>. When the user clicks on the button, the button changes the caption to <i>Hello World</i>.
-</p>
-<p>
-There are many approaches that can achieve the above goal. One can submit the page to the server, examine the POST variable, and generate a new page with the button caption updated. Or one can simply use JavaScript to update the button caption upon its <i>onclick</i> event.
-</p>
-<p>
-PRADO promotes component-based and event-driven Web programming. The button is represented by a <i>TButton</i> object. It encapsulates the button caption as the <i>Text</i> property and associates the user button click action with a server-side <i>Click</i> event. Therefore, the "Hello World" task can be handled intuitively and easily. One simply needs to attach a function to the button's <i>Click</i> event. Within the function, the button's <i>Text</i> property is modified as "Hello World". The following diagram shows the above sequence,
-</p>
-<img src="<%~Samples/HelloWorld/sequence.gif%>" />
-<p>
-The code that a developer needs to write is merely the following event handler function, where <tt>$sender</tt> refers to the button object.
-<com:TTextHighlighter CssClass="source">
-public function buttonClicked($sender,$param)
-{
- $sender->Text = "Hello World";
-}
-</com:TTextHighlighter>
-</p>
-<p>
-The following line in the page template attaches the <tt>buttonClicked()</tt> method to the <tt>OnClick</tt> event of the button,
-</p>
-<com:TTextHighlighter Language="prado" CssClass="source">
-&lt;com:TButton Text="Click Me" OnClick="buttonClicked" /&gt;
-</com:TTextHighlighter>
-
-<com:RunBar PagePath="Fundamentals.Samples.HelloWorld.Home" />
-
-</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page
deleted file mode 100644
index 60c7c3e2..00000000
--- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page
+++ /dev/null
@@ -1,6 +0,0 @@
-<%@ Title="Hello World" %>
-<com:TContent ID="body">
-
-<com:TButton Text="Click Me" OnClick="buttonClicked" />
-
-</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php
deleted file mode 100644
index b1a7f991..00000000
--- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
-
-class Home extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- $sender->Text="Hello World";
- }
-}
-
-?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif
deleted file mode 100644
index a1e51200..00000000
--- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.gif
+++ /dev/null
Binary files differ
diff --git a/demos/quickstart/protected/pages/GettingStarted/AboutPrado.page b/demos/quickstart/protected/pages/GettingStarted/AboutPrado.page
index 0d031f9f..5ea7a1cf 100644
--- a/demos/quickstart/protected/pages/GettingStarted/AboutPrado.page
+++ b/demos/quickstart/protected/pages/GettingStarted/AboutPrado.page
@@ -4,35 +4,65 @@
PRADO is a component-based and event-driven programming framework for developing Web applications in PHP 5. PRADO stands for <b>P</b>HP <b>R</b>apid <b>A</b>pplication <b>D</b>evelopment <b>O</b>bject-oriented.
</p>
<p>
-PRADO stipulates a protocol of writing and using components to construct Web applications. A component is a software unit that is self-contained and can be reused with trivial customization.
+A primary goal of PRADO is to enable maximum reusability in Web programming. By reusability, we mean not only reusing one's own code, but also reusing other people's code in an easy way. The latter is more important as it saves the effort of reinventing the wheels and may cut off development time dramatically. The introduction of the concept of component is for this purpose.
+</p>
+<p>
+To achieve the above goal, PRADO stipulates a protocol of writing and using components to construct Web applications. A component is a software unit that is self-contained and can be reused with trivial customization. New components can be created by simple composition of existing components.
+</p>
+<p>
+To facilitate interacting with components, PRADO implements an event-driven programming paradigm that allows delegation of extensible behavior to components. End-user activities, such as clicking on a submit button, are captured as server events. Methods or functions may be attached to these events so that when the events happen, they are invoked automatically to respond to the events. Compared with the traditional Web programming in which developers have to deal with the raw POST or GET variables, event-driven programming helps developers better focus on the necessary logic and reduces significantly the low-level repetitive coding.
</p>
<p>
-PRADO implements an event-driven programming paradigm that allows delegation of extensible behavior to components. End-user activities, such as clicking on a submit button, are captured as server events. Methods or functions may be attached to these events so that when the events happen, they are invoked automatically to respond to the events. Compared with the traditional Web programming in which developers have to deal with the raw POST or GET variables, event-driven programming helps developers better focus on the necessary logic and reduces significantly the low-level repetitive coding.
+In summary, developing a PRADO Web application mainly involves instantiating prebuilt component types, configuring them by setting their properties, responding to their events by writing handler functions, and composing them into pages for the application. It is very similar to RAD toolkits, such as Borland Delphi and Microsoft Visual Basic, that are used to develop desktop GUI applications.
</p>
<h2>Why PRADO?</h2>
<p>
-A primary goal of PRADO is to enable maximum reusability in Web programming. By reusability, we mean not only reusing one's own code, but also reusing other people's code in an easy way. The latter is more important as it saves the effort of reinventing the wheels and may cut off development time dramatically. The introduction of the concept of component is for this purpose.
+PRADO is mostly quoted as a unique framework. In fact, it is so unique that it may turn your boring PHP programming into a fun task. The following list is a short summary of the main features of PRADO,
+</p>
+<ul>
+<li>Reusability - Code following the PRADO component protocol are highly reusable. Everything in PRADO is a reusable component.</li>
+<li>Event-driven programming - End-user activities, such as clicking on a submit button, are captured as server events so that developers have better focus on dealing with user interactions.</li>
+<li>Team integration - Presentation and logic are separately stored. PRADO applications are themable.</li>
+<li>Powerful Web controls - PRADO comes with a set of powerful components dealing with Web user interfaces. Highly interactive Web pages can be created with a few lines of code. For example, using the datagrid component, one can quickly create a page presenting a data table which allows paging, sorting, editing, and deleting rows of the data.
+<li>I18N and L10N support - PRADO includes complete support for building applications with multiple languages and locales.</li>
+<li>Seamless Ajax support - PRADO provides a set of Ajax-enabled components that can be easily used (to be available in v3.1).</li>
+<li>XHTML compliance - Web pages generated by PRADO are XHTML-compliant.</li>
+<li>Accommodation of existing work - PRADO is a generic framework with focus on the presentational layer. It does not exclude developers from using most existing class libraries or toolkits. For example, one can AdoDB or Creole to deal with DB in his PRADO application.
+<li>Other features - Powerful error/exception handling and message logging; generic caching and selective output caching; customizable and localizable error handling; extensible authentication and authorization; security measures such as cross-site script (CSS) prevention, cookie protection, etc.</li>
+</ul>
+
+<h2>What Is PRADO Best For?</h2>
+<p>
+PRADO is best suitable for creating Web front-ends that are highly user-interactive and require small to medium traffic. It can be used to develop systems as simple as a blog system to systems as complex as a content management system (CMS) or a complete e-commerce solution. PRADO can help you cut your development time significantly.
</p>
<p>
-Reusing existing components is very easy. It merely involves getting and setting component properties, and sometimes responding to component events. PRADO provides a complete set of components that deal with common Web programming tasks, such as collecting and validating user inputs through generic HTML elements, manipulating tabular data, etc. These components can be rapidly glued together and form Web pages that are highly user interactive. For example, using the datagrid component, one only needs to write a few lines of PHP code (mainly to populate the data into the datagrid), and he can create a page presenting a data table which allows paging, sorting, editting, and deleting rows of data.
+PRADO does not exclude other back-end solutions such as most DB abstraction layers. In fact, they can be used like what you usually do with traditional PHP programming.
</p>
<p>
-Developing new components can also be very easy. A new component class can be created by composing together several existing components in a template which specifies the layout of the constituent components. The page that you are reading now is such an example. It is the presentation of a component without a single line of PHP code.
+Without caching techniques, PRADO may not be suitable for developing extremely high-traffic Web applications, such as popular portals, forums, etc. In these applications, every niche of potential performance gain must be exploited and server caching (e.g. Zend optimizer) is almost a must. PRADO implements a generic cache technique and enables selective caching of part of Web contents.
+</p>
+
+<h2>How Is PRADO Compared with Other Frameworks?</h2>
+<p>
+PRADO is described as a unique framework. Its uniqueness mainly lies in the component-based and event-driven programming paradigm that it tries to promote. Although this programming paradigm is not new in desktop application programming and not new in a few Web programming languages, PRADO is perhaps the first PHP framework enabling it.
</p>
<p>
-Developing a PRADO Web application mainly involves instantiating prebuilt component types, configuring them by setting their properties, responding to their events by writing handler functions, and composing them into pages for the application. It is very similar to RAD toolkits, such as Borland Delphi and Microsoft Visual Basic, that are used to develop desktop GUI applications.
+Most PHP frameworks are trying to establish a loose standard of organizing PHP programming, most preferably the MVC (model-view-controller) model. It is difficult to compare PRADO with these frameworks because they have different focuses. What we can say is, PRADO is more like a high-level language built upon PHP while those MVC frameworks stand for the best programming practices. Both aim to help developers to rapidly complete Web application development. The advantage of PRADO is its rich set of prebuilt powerful components and extreme reusability of the PRADO code, while the advantage of the MVC frameworks is the complete separation of model, view and controller, which greatly facilitates team integration.
</p>
-<h2>What Is PRADO Best For?</h2>
+<h2>History of PRADO</h2>
<p>
-PRADO is best suitable for creating Web front-ends that are highly user-interactive and require small to medium traffic. It can be used to develop systems as simple as a blog system to systems as complex as a content management system (CMS) or a complete e-commerce solution. PRADO can help you cut your development time significantly.
+The very original inspiration of PRADO came from Apache Tapestry. During the design and implementation, I borrowed many ideas from Borland Delphi and Microsoft ASP.NET. The first version of PRADO came out in June 2004 and was written in PHP 4. Driven by the Zend PHP 5 coding contest, I rewrote PRADO in PHP 5, which proved to be a wise move, thanks to the new object model provided by PHP 5. PRADO won the grand prize in the Zend contest, earning high votes both from the public and from the judges' panel.
</p>
<p>
-PRADO does not exclude other back-end solutions such as most DB abstraction layers. In fact, they can be used like what you usually do with traditional PHP programming.
+In August 2004, PRADO was hosted on SourceForge as an open source project. Soon after, the project site <a href="http://www.xisc.com/">xisc.com</a> was announced to public. With the fantastic support of PRADO developer team and PRADO users, PRADO evolved to version 2.0 in mid 2005. In this version, Wei Zhuo contributed to PRADO with the excellent I18 and L10N support.
+</p>
+<p>
+In May 2005, we decided to completely rewrite the PRADO framework to resolve a few fundamental issues found in version 2.0 and to catch up with some cool features available in Microsoft ASP.NET 2.0. After nearly a year's hard work with over 50,000 lines of new code, version 3.0 was finally made available in April 2006.
</p>
<p>
-Without server caching techniques, PRADO may not be suitable for developing extremely high-traffic Web applications, such as popular portals, forums, etc. In these applications, every niche of potential performance gain must be exploited and server caching (e.g. Zend optimizer) is almost a must.
+Starting from version 3.0, significant efforts are allocated to ensure the quality and stability of PRADO. If we say PRADO v2.x and v1.x are proof-of-concept work, we can say PRADO 3.x grows up to a serious project that is suitable for business application development.
</p>
</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/GettingStarted/HelloWorld.page b/demos/quickstart/protected/pages/GettingStarted/HelloWorld.page
new file mode 100644
index 00000000..b5016f4e
--- /dev/null
+++ b/demos/quickstart/protected/pages/GettingStarted/HelloWorld.page
@@ -0,0 +1,72 @@
+<com:TContent ID="body" >
+<h1>My First PRADO Application</h1>
+<p>
+In this section, we guide you through creating your first PRADO application, the famous "Hello World" application.
+</p>
+<p>
+"Hello World" perhaps is the simplest <i>interactive</i> PRADO application that you can create. It displays to end-users a page with a submit button whose caption is <tt>Click Me</tt>. After the user clicks on the button, its caption is changed to <tt>Hello World</tt>.
+</p>
+<p>
+There are many approaches that can achieve the above goal. One can submit the page to the server, examine the POST variable, and generate a new page with the button caption updated. Or one can simply use JavaScript to update the button caption upon its <tt>onclick</tt> client event.
+</p>
+<p>
+PRADO promotes component-based and event-driven Web programming. The button is represented by a <tt>TButton</tt> object. It encapsulates the button caption as the <tt>Text</tt> property and associates the user button click action with a server-side <tt>OnClick</tt> event. To respond to the user clicking on the button, one simply needs to attach a function to the button's <tt>OnClick</tt> event. Within the function, the button's <tt>Text</tt> property is modified as "Hello World". The following diagram shows the above sequence,
+</p>
+<img src="<%~sequence.gif%>" />
+<p>
+Our PRADO application consists of three files, <tt>index.php</tt>, <tt>Home.page</tt> and <tt>Home.php</tt>, which are organized as follows,
+</p>
+<img src="<%~directory.gif%>" />
+<p>
+where each directory is explained as follows. Note, the above directory structure can be customized. For example, one can move the <tt>protected</tt> directory out of Web directories. You will know how to do this after you go through this tutorial.
+</p>
+<ul>
+<li><tt>assets</tt> - directory storing published private files. See <a href="?page=Advanced.Assets">assets</a> section for more details. This directory must be writable by the Web server process.</li>
+<li><tt>protected</tt> - application base path storing application data and private script files. This directory should be configured as inaccessible to end-users.</li>
+<li><tt>runtime</tt> - application runtime storage path storing application runtime information, such as application state, cached data, etc. This directory must be writable by the Web server process.</li>
+<li><tt>pages</tt> - base path storing all PRADO pages.</li>
+</ul>
+
+<p>
+The three files that we need are explained as follows.
+</p>
+<ul>
+<li><tt>index.php</tt> - entry script of the PRADO application. This file is required by all PRADO applications and is the only script file that is directly accessible by end-users. Content in <tt>index.php</tt> mainly consists of the following three lines,
+<com:TTextHighlighter CssClass="source">
+require_once('path/to/prado.php'); // include the prado script
+$application=new TApplication; // create a PRADO application instance
+$application->run(); // run the application
+</com:TTextHighlighter>
+</li>
+<li><tt>Home.page</tt> - template for the default page returned when users do not explicitly specify the page requested. A template specifies the presentational layout of components. In this example, we use two components, <tt>TForm</tt> and <tt>TButton</tt>, which correspond to the &lt;form&gt; and &lt;input&gt; HTML tags, respectively. The template contains the following content,
+<com:TTextHighlighter Language="prado" CssClass="source">
+<html>
+ <body>
+ &lt;com:TForm&gt;
+ &lt;com:TButton Text="Click me" OnClick="buttonClicked" /&gt;
+ &lt;/com:TForm&gt;
+ </body>
+</html>
+</com:TTextHighlighter>
+</li>
+<li><tt>Home.php</tt> - page class for the <tt>Home</tt> page. It mainly contains the method responding to the <tt>OnClick</tt> event of the button.
+<com:TTextHighlighter CssClass="source">
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ // $sender refers to the button component
+ $sender->Text="Hello World!";
+ }
+}
+</com:TTextHighlighter>
+</li>
+</ul>
+<p>
+The application is now ready and can be accessed via: <tt>http://Web-server-address/helloworld/index.php</tt>, assuming <tt>helloworld</tt> is directly under the Web <tt>DocumentRoot</tt>. Try to change <tt>TButton</tt> in <tt>Home.page</tt> to <tt>TLinkButton</tt> and see what happens.
+</p>
+<p>
+Complete source code of this demo can be found in the PRADO release. You can also try the <a href="http://www.pradosoft.com/demos/helloworld/">online demo</a>.
+</p>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/GettingStarted/Installation.page b/demos/quickstart/protected/pages/GettingStarted/Installation.page
index ca8d299c..ae3d18c3 100644
--- a/demos/quickstart/protected/pages/GettingStarted/Installation.page
+++ b/demos/quickstart/protected/pages/GettingStarted/Installation.page
@@ -1,21 +1,22 @@
<com:TContent ID="body" >
<h1>Installing PRADO</h1>
<p>
-If you are viewing this page from your own Web server, you are already done with the installation. The instructions at the end of this page, however, may still be useful for you to troubleshoot issues happened during your development based on PRADO.
+If you are viewing this page from your own Web server, you are already done with the installation.
</p>
<p>
-Installation of PRADO is very easy. Follow the following steps,
+The minimum requirement by PRADO is that the Web server support PHP 5. PRADO has been tested with Apache Web server on Windows and Linux. Highly possibly it may also run on other platforms with other Web servers, as long as PHP 5 is supported.
+</p>
+<p>
+Installation of PRADO mainly involves downloading and unpacking.
+</p>
<ol>
-<li>Go to <a href="http://www.pradosoft.com/">pradosoft.com</a> to grab a latest version of PRADO.</li>
-<li>Unpack the PRADO release file using <i>unzip</i> on Linux or <i>winzip</i> on Windows. A directory named <i>prado</i> will be created under the working directory.</li>
-<li>Copy or upload everything under the <i>prado</i> directory to the DocumentRoot directory (or a subdirectory) of the Web server.</li>
-<li>Your installation of PRADO is done and you can start to play with the demo applications included in the PRADO release via URL <i>http://web-server-address/demos/</i>. This QuickStart Tutorial is one of such applications.</li>
+<li>Go to <a href="http://www.pradosoft.com/">pradosoft.com</a> to grab the latest version of PRADO.</li>
+<li>Unpack the PRADO release file to a Web-accessible directory.
</ol>
-</p>
<p>
-If you encounter any problems with the demo applications, please use the PRADO requirement checker script to check first if your server configuration fullfils the conditions required by PRADO.
+Your installation of PRADO is done and you can start to play with the demo applications included in the PRADO release via URL <tt>http://web-server-address/prado/demos/</tt>. Here we assume PRADO is unpacked to the <tt>prado</tt> subdirectory under the <tt>DocumentRoot</tt> of the Web server.
</p>
<p>
-The minimum requirement by PRADO is that the Web server support PHP 5. PRADO has been tested with Apache Web server on Windows and Linux. Highly possibly it may also run on other platforms with other Web servers, as long as PHP 5 is supported.
+If you encounter any problems with the demo applications, please use the PRADO requirement checker script, accessible via <tt>http://web-server-address/prado/requirements/index.php</tt>, to check first if your server configuration fulfills the conditions required by PRADO.
</p>
</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/GettingStarted/Upgrading.page b/demos/quickstart/protected/pages/GettingStarted/Upgrading.page
index cb89cb10..287d3f84 100644
--- a/demos/quickstart/protected/pages/GettingStarted/Upgrading.page
+++ b/demos/quickstart/protected/pages/GettingStarted/Upgrading.page
@@ -1,8 +1,7 @@
<com:TContent ID="body" >
-<h1>Upgrading from Earlier Versions</h1>
+<h1>Upgrading from v2.x and v1.x</h1>
-<h2>Upgrading from v2.x and v1.x</h2>
<p>
PRADO v3.0 is NOT backward compatible with earlier versions of PRADO.
</p>
@@ -10,30 +9,40 @@ PRADO v3.0 is NOT backward compatible with earlier versions of PRADO.
A good news is, properties and events of most controls remain intact, and the syntax of control templates remains largely unchanged. Therefore, developers' knowledge of earlier versions of PRADO are still applicable in v3.0.
</p>
<p>
-We summarize in the following the most significant changes in v3.0 to help developers upgrade their v2.x and v1.x PRADO applications more easily.
+We summarize in the following the most significant changes in v3.0 to help developers upgrade their v2.x and v1.x PRADO applications more easily, if needed.
</p>
-<h3>Component Definition</h3>
+<h2>Component Definition</h2>
<p>
-Version 3.0 has completely discarded the need of component specification files. It relies more on conventions for defining component properties and events. In particular, a property is defined by the existence of a getter method and/or a setter method, while an event is defined by the existence of an <tt>on</tt>-method. Property and event names in v3.0 are both case-insensitive.
+Version 3.0 has completely discarded the need of component specification files. It relies more on conventions for defining component properties and events. In particular, a property is defined by the existence of a getter method and/or a setter method, while an event is defined by the existence of an <tt>on</tt>-method. Property and event names in v3.0 are both case-insensitive. As a consequence, developers are now required to take care of type conversions when a component property is being set. For example, the following code is used to define the setter method for the <tt>Enabled</tt> property of <tt>TControl</tt>, which is of <tt>boolean</tt> type,
+</p>
+<com:TTextHighlighter Language="php" CssClass="source">
+public function setEnabled($value)
+{
+ $value=TPropertyValue::ensureBoolean($value);
+ $this->setViewState('Enabled',$value,true);
+}
+</com:TTextHighlighter>
+<p>
+where <tt>TPropertyValue::ensureBoolean()</tt> is used to ensure that the input value be a boolean. This is because when the property is configured in template, a string value is passed to the setter. In previous versions, PRADO knows the property type based on the component specification files and does the type conversion for you.
</p>
-<h3>Application Controller</h3>
+<h2>Application Controller</h2>
<p>
Application controller now implements a modular architecture. Modules can be plugged in and configured in application specifications. Each module assumes a particular functionality, and they are coordinated together by the <a href="?page=Fundamentals.Applications">application lifecycle</a>. The concept of v2.x modules is replaced in v3.0 by <a href="?page=Configurations.PageConfig">page directories</a>. As a result, the format of v3.0 <a href="?page=Configurations.AppConfig">application specification</a> is also different from earlier versions.
</p>
-<h3>Pages</h3>
+<h2>Pages</h2>
<p>
-Pages in v3.0 are organized in directories which may be compared to the module concept in v2.x. Pages are requested using the path to them. For example, a URL <tt>index.php?page=Controls.Samples.Sample1</tt> would request for a page named <tt>Sample1</tt> stored under the <tt>[BasePath]/Controls/Samples</tt> directory, where <tt>[BasePath]</tt> refers to the root page path. The file name of a page template must be ended with <tt>.page</tt>, mainly to differentiate from templates of non-page controls whose file names must be ended with <tt>.tpl</tt>.
+Pages in v3.0 are organized in directories which may be compared to the module concept in v2.x. Pages are requested using the path to them. For example, a URL <tt>index.php?page=Controls.Samples.Sample1</tt> would be used to request for a page named <tt>Sample1</tt> stored under the <tt>[BasePath]/Controls/Samples</tt> directory, where <tt>[BasePath]</tt> refers to the root page path. The file name of a page template must be ended with <tt>.page</tt>, mainly to differentiate page templates from non-page control templates whose file names must be ended with <tt>.tpl</tt>.
</p>
-<h3>Control Relationship</h3>
+<h2>Control Relationship</h2>
<p>
Version 3.0 redefines the relationships between controls. In particular, the parent-child relationship now refers to the enclosure relationship between controls' presentation. And a new naming-container relationship is introduced to help better manage control IDs. For more details, see the <a href="?page=Fundamentals.Controls">controls</a> section.
</p>
-<h3>Template Syntax</h3>
+<h2>Template Syntax</h2>
<p>
The syntax of control templates in v3.0 remains similar to those in earlier versions, with many enhancements. A major change is about the databinding expression. In v3.0, this is done by the following,
</p>
@@ -44,7 +53,7 @@ The syntax of control templates in v3.0 remains similar to those in earlier vers
Expression and statement tags are also changed similarly. For more details, see the <a href="?page=Configurations.Templates1">template definition</a> section.
</p>
-<h3>Theme Syntax</h3>
+<h2>Theme Syntax</h2>
<p>
Themes in v3.0 are defined like control templates with a few restrictions.
</p>
diff --git a/demos/quickstart/protected/pages/GettingStarted/directory.gif b/demos/quickstart/protected/pages/GettingStarted/directory.gif
new file mode 100644
index 00000000..e6c4f724
--- /dev/null
+++ b/demos/quickstart/protected/pages/GettingStarted/directory.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/GettingStarted/sequence.gif b/demos/quickstart/protected/pages/GettingStarted/sequence.gif
new file mode 100644
index 00000000..4207a9bb
--- /dev/null
+++ b/demos/quickstart/protected/pages/GettingStarted/sequence.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd b/demos/quickstart/protected/pages/GettingStarted/sequence.vsd
index e8c2f5a7..840dc26f 100644
--- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/sequence.vsd
+++ b/demos/quickstart/protected/pages/GettingStarted/sequence.vsd
Binary files differ
diff --git a/tests/FunctionalTests/quickstart/Fundamentals/HelloWorldTestCase.php b/tests/FunctionalTests/quickstart/Fundamentals/HelloWorldTestCase.php
deleted file mode 100644
index e3da5a72..00000000
--- a/tests/FunctionalTests/quickstart/Fundamentals/HelloWorldTestCase.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-//New Test
-class HelloWorldTestCase extends SeleniumTestCase
-{
- function test ()
- {
- $this->open("../../demos/quickstart/index.php?page=Fundamentals.Samples.HelloWorld.Home&amp;notheme=true", "");
- $this->verifyTitle("Hello World", "");
- $this->clickAndWait("//input[@type='submit' and @value='Click Me']", "");
- $this->clickAndWait("//input[@type='submit' and @value='Hello World']", "");
- $this->verifyTitle("Hello World", "");
- }
-}
-
-?> \ No newline at end of file