Blog tutorial
From PRADO Wiki
This article is a draft under early authorship and is rapidly changing. Please consider suggesting your changes on the discussion page.
In this Step-by-Step tutorial, we are going to build the PRADO Demo Blog by ourself.
Every directory/file/class/function used in this tutorial will be explained.
Written by John Ripke
Contents |
[edit]
PRADO Basic
This step is similar to Helloworld from the QuickStart Tutorial
Creating the base directory structure required by PRADO.
- Create a new directory, with the name blog.
- Create two new subdirectories in the blog directory, with the names assets and protected.
- Create two new subdirectories in the protected directory, with the names pages and runtime.
IMPORTANT: The directories assets and runtime must be writable by the Web server process.
Creating the PRADO base files required by PRADO.
- Create a new file named index.php, read the howto create a basic index.php file.
[edit]
Planning Our Blog
Main Objectives of the Blog:
- Application designed using dynamically included files.
- List topics and articles from the database.
- The main page will list the latest articles in all topics in the database.
- Search the site for full word matches, in topics, articles and even comments.
- User authentication.
Additionally:
- provide WYSIWYG for post editing
[edit]
Building the database
Textual database schema.
[edit]
Building the Blog
- Creating the Application configurations.
- Creating the Main Layout.
- Creating the Portlets.
- Creating the Pages.

