)((.|\n)*?)(<\/div>)/', array($this,'escape_verbatim'), $html);
@@ -158,12 +163,15 @@ class Page2Tex
'\href{http://www.pradosoft.com/demos/quickstart/index.php?page=$1}{$1 Demo}', $html);
//DocLink
+ $html = preg_replace('/
/',
+ '\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$3}', $html);
+
$html = preg_replace('/
/',
'\href{http://www.pradosoft.com/docs/manual/$1/$2.html}{$1.$2 API Reference}', $html);
//text modifiers
$html = preg_replace('/<(b|strong)[^>]*>([^<]*)<\/(b|strong)>/', '\textbf{$2}', $html);
- $html = preg_replace('/
]*>([^<]*)<\/i>/', '\emph{$1}', $html);
+ $html = preg_replace('/]*>([^<]*)+?<\/i>/', '\emph{$1}', $html);
$html = preg_replace_callback('/([^<]*)<\/tt>/', array($this,'texttt'), $html);
//links
diff --git a/buildscripts/texbuilder/quickstart/pages.php b/buildscripts/texbuilder/quickstart/pages.php
index 91dba08d..e8518d9d 100644
--- a/buildscripts/texbuilder/quickstart/pages.php
+++ b/buildscripts/texbuilder/quickstart/pages.php
@@ -8,10 +8,23 @@ $pages['Getting Started'] = array(
'GettingStarted/Introduction.page',
'GettingStarted/AboutPrado.page',
'GettingStarted/Installation.page',
- 'GettingStarted/HelloWorld.page',
'GettingStarted/Upgrading.page'
);
+$pages['Tutorials'] = array(
+ 'GettingStarted/HelloWorld.page',
+ 'Fundamentals/Hangman.page',
+ 'GettingStarted/CommandLine.page'
+ );
+
+$pages['Tutorial: Currency Converter'] = array(
+ 'Tutorial/CurrencyConverter.page'
+ );
+
+$pages['Tutorial: Building an AJAX Chat Application'] = array(
+ 'Tutorial/AjaxChat.page'
+ );
+
$pages['Fundamentals'] = array(
'Fundamentals/Architecture.page',
'Fundamentals/Components.page',
@@ -19,8 +32,8 @@ $pages['Fundamentals'] = array(
'Fundamentals/Pages.page',
'Fundamentals/Modules.page',
'Fundamentals/Services.page',
- 'Fundamentals/Applications.page',
- 'Fundamentals/Hangman.page');
+ 'Fundamentals/Applications.page'
+ );
$pages['Configurations'] = array(
'Configurations/Overview.page',
@@ -28,7 +41,9 @@ $pages['Configurations'] = array(
'Configurations/Templates2.page',
'Configurations/Templates3.page',
'Configurations/AppConfig.page',
- 'Configurations/PageConfig.page');
+ 'Configurations/PageConfig.page',
+ 'Configurations/UrlMapping.page'
+ );
$pages['Control Reference : Standard Controls'] = array(
'Controls/Button.page',
diff --git a/buildscripts/texbuilder/quickstart/quickstart.tex b/buildscripts/texbuilder/quickstart/quickstart.tex
index d84383b8..7008db92 100644
--- a/buildscripts/texbuilder/quickstart/quickstart.tex
+++ b/buildscripts/texbuilder/quickstart/quickstart.tex
@@ -130,5 +130,10 @@ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\include{ch13}
\include{ch14}
\include{ch15}
+\include{ch16}
+\include{ch17}
+\include{ch18}
+\include{ch19}
+\include{ch20}
\end{document}
diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl
index 40c70424..e7d4a683 100644
--- a/demos/quickstart/protected/controls/TopicList.tpl
+++ b/demos/quickstart/protected/controls/TopicList.tpl
@@ -14,6 +14,7 @@
Tutorials
@@ -67,26 +67,13 @@
Advanced Topics
- Collections
- Authentication and Authorization
- Security
- - Client-side Scripting
- Assets
- Master and Content
- Themes and Skins
diff --git a/demos/quickstart/protected/pages/Configurations/UrlMapping.page b/demos/quickstart/protected/pages/Configurations/UrlMapping.page
index 112d70e2..20954c24 100644
--- a/demos/quickstart/protected/pages/Configurations/UrlMapping.page
+++ b/demos/quickstart/protected/pages/Configurations/UrlMapping.page
@@ -43,9 +43,9 @@ To use TUrlMapping, one must set the UrlManager property of th
The above example is part of the application configuration of the blog demo in the PRADO release. It enables recognition of the following URL formats:
- - /index.php/post/123 is recognized as /index.php?page=Posts.ViewPost&id=123
- - /index.php/archive/200605 is recognized as /index.php?page=Posts.ListPost&time=200605
- - /index.php/category/2 is recognized as /index.php?page=Posts.ListPost&cat=2
+ - /index.php/post/123 is recognized as /index.php?page=Posts.ViewPost&id=123
+ - /index.php/archive/200605 is recognized as /index.php?page=Posts.ListPost&time=200605
+ - /index.php/category/2 is recognized as /index.php?page=Posts.ListPost&cat=2
diff --git a/demos/quickstart/protected/pages/Tutorial/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/AjaxChat.page
index 3a17b5d4..2d49c9f6 100644
--- a/demos/quickstart/protected/pages/Tutorial/AjaxChat.page
+++ b/demos/quickstart/protected/pages/Tutorial/AjaxChat.page
@@ -3,9 +3,9 @@
This tutorial introduces the Prado web application framework's
ActiveRecord
and Active Controls to build a Chat
- web application . It is assumed that you
+ web application. It is assumed that you
are familiar with PHP and you have access to a web server that is able to serve PHP5 scripts.
- This basic chat application will utilizing the following ideas/components in Prado.
+ This basic chat application will utilize the following ideas/components in Prado.
- Building a custom User Manager class.
- Authenticating and adding a new user to the database.
@@ -39,19 +39,19 @@ php prado/framework/prado-cli.php -c chat
The above command creates the necessary directory structure and minimal
files (including "index.php" and "Home.page") to run a Prado web application.
- Now you can point your browser's url to the web server to serve up
+ Now you can point your browser's URL to the web server to serve up
the index.php script in the chat directory.
You should see the message "Welcome to Prado!"
Authentication and Authorization
The first task for this application is to ensure that each user
- of the chat application is assigned with a unique (choosen by the user)
+ of the chat application is assigned with a unique (chosen by the user)
username. To achieve this, we can secure the main chat application
- page to deny access to anonymouse users. First, let us create the Login
+ page to deny access to anonymous users. First, let us create the Login
page with the following code. We save the Login.php and Login.page
in the chat/protected/pages/ directory (there should be a Home.page
- file there create by the command line tool).
+ file created by the command line tool).
<?php
@@ -88,7 +88,7 @@ class Login extends TPage