From db1a9b1af8aee6d5967e96d3f8928d1576c45daf Mon Sep 17 00:00:00 2001 From: mickymax <> Date: Sun, 18 Feb 2007 18:08:46 +0000 Subject: "Traduction francaise" --- .gitattributes | 6 + .../protected/pages/Tutorial/fr/AjaxChat.page | 757 +++++++++++++++++++++ .../pages/Tutorial/fr/CurrencyConverter.page | 405 +++++++++++ .../protected/pages/Tutorial/fr/chat1.png | Bin 0 -> 10533 bytes .../protected/pages/Tutorial/fr/chat2.png | Bin 0 -> 13409 bytes .../protected/pages/Tutorial/fr/example1.png | Bin 0 -> 11139 bytes .../protected/pages/Tutorial/fr/example2.png | Bin 0 -> 13842 bytes 7 files changed, 1168 insertions(+) create mode 100644 demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page create mode 100644 demos/quickstart/protected/pages/Tutorial/fr/CurrencyConverter.page create mode 100644 demos/quickstart/protected/pages/Tutorial/fr/chat1.png create mode 100644 demos/quickstart/protected/pages/Tutorial/fr/chat2.png create mode 100644 demos/quickstart/protected/pages/Tutorial/fr/example1.png create mode 100644 demos/quickstart/protected/pages/Tutorial/fr/example2.png diff --git a/.gitattributes b/.gitattributes index a2ce04e5..833d83e4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1217,6 +1217,12 @@ demos/quickstart/protected/pages/Tutorial/chat1.png -text demos/quickstart/protected/pages/Tutorial/chat2.png -text demos/quickstart/protected/pages/Tutorial/example1.png -text demos/quickstart/protected/pages/Tutorial/example2.png -text +demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page -text +demos/quickstart/protected/pages/Tutorial/fr/CurrencyConverter.page -text +demos/quickstart/protected/pages/Tutorial/fr/chat1.png -text +demos/quickstart/protected/pages/Tutorial/fr/chat2.png -text +demos/quickstart/protected/pages/Tutorial/fr/example1.png -text +demos/quickstart/protected/pages/Tutorial/fr/example2.png -text demos/quickstart/protected/pages/ViewSource.page -text demos/quickstart/protected/pages/ViewSource.php -text demos/quickstart/protected/pages/config.xml -text diff --git a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page new file mode 100644 index 00000000..fc1997c8 --- /dev/null +++ b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page @@ -0,0 +1,757 @@ + +

Building an AJAX Chat Application

+

This tutorial introduces the Prado web application framework's + ActiveRecord + and Active Controls to build a Chat + 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 utilize the following ideas/components in Prado. +

+ + +

In this tutorial you will build an AJAX Chat web application that allows + multiple users to communicate through their web browser. + The application consists of two pages: a login page + that asks the user to enter their nickname and the main application chat + page. + You can try the application locally or at + Pradosoft.com. + The main application chat page is shown bellow. + class="figure" /> +

+ +

Download, Install and Create a New Application

+

The download and installation steps are similar to those in + the Currency converter tutorial. + To create the application, we run from the command line the following. + See the Command Line Tool + for more details. + +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 + 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 (chosen by the user) + username. To achieve this, we can secure the main chat application + 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 created by the command line tool). +

+ +<?php +class Login extends TPage +{ +} +?> + + + + + + Prado Chat Demo Login + + +<com:TForm> +

Prado Chat Demo Login

+