PHP Programming/Flat Frog

From Wikibooks, open books for an open world
Jump to: navigation, search

Return to Basic PHP.

Contents

[edit] What is Flat Frog ?

Flat-frog-logo.gif

Flat Frog is a templating system created by Paul Lockaby <paul @ paullockaby.com>. The package is actually maintained by Serge Gilette. It can be found on SourceForge on its project page

Flat Frog commenced life as Smarty-Lite, as it relies on plugins to add in various support whilst the core remains smaller than Smarty.

This WikiBook will provide a series of examples and practical case on the use of Flat Frog testing

[edit] Installation

[edit] Basic usage

require(_LIB_DIR.'/class.template.php');
$tpl = new template;
$tpl->compile_dir = _TPL_COMPILED_DIR;
$tpl->template_dir = _TPL_DIR;
 
$tpl->template_dir = _TPL_DIR;

[edit] Cookbook recipe

[edit] Table with alternate colors

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export