PEAR::HTML::Progress example: Default ProgressBar Generator
Author: Laurent Laville

examples

# Default ProgressBar Generator

$Date: 2005/07/25 12:52:15 $

- Introduction
- Render options
- Ouput
- PHP source syntax highlight
- Play generator

## Introduction

This example requires :

- PEAR::HTML_Progress_Generator 1.2.2 or better (see source at line 12).

Be aware that:

- HTML_Progress_Generator has dependencies (HTML_QuickForm 3.2.4+, HTML_QuickForm_Controller 1.0.4+)

This example will run a default ProgressBar Controller Wizard that will help you to create your own progress bar. You may even save the CSS and/or PHP code at end !

Few lines of code are necessary to run this generator. First we start a session at line 15 (to keep data), then we create a HTML_Progress_Generator instance at line 17 without options, and finally run the controller wizard itself at line 18.

[Top]

## Render options

None, uses all defaults:

- Controller name = ProgressGenerator
- preview Action = ActionPreview => HTML/Progress/generator/preview.php
- display Action = ActionDisplay => HTML/Progress/generator/default.php
- process Action = ActionProcess => HTML/Progress/generator/process.php

[Top]

## Output

### Screenshot

[Top]

## PHP source syntax highlight

Open source listing in a new window.

[Top]

## Play generator

Run the script.

[Top]