PEAR Manual
Prev
Chapter 25. HTML
Next
HTML_Template_Flexy
Table of Contents
Introduction
-- What HTML_Template_Flexy can do
Configuration Options
-- Setting the defaults for HTML_Template_Flexy
HTML_Template_Flexy::HTML_Template_Flexy()
-- constructor
->compile()
-- Converts a template from markup to PHP if required
->outputObject()
-- Merges a controller object with the template and outputs the result
->bufferedOutputObject()
-- Merges a controller object with the template and returns the result
{variable}
-- creates PHP code to echo a variable
{method(arguments,#quoted arguments#)}
-- creates a PHP method call, and echos the results
{foreach:variable,key,value}
-- creates a PHP foreach loop
{if:variable}
-- creates a PHP if statement
{end:}
-- closes an if or foreach block
{else:}
-- adds an PHP else in an if block
<FORM NAME="name" FLEXYOBJECT="name">
-- configures automatic form elements
<INPUT NAME="name">
-- creates PHP variable for input values
<TEXTAREA NAME="name">
-- creates PHP variable for textarea value
<SELECT NAME="name">
-- creates PHP variable and code for select lists
flexy:if="variable or method()"
-- creates a PHP if conditional tag
flexy:foreach="variable,key,value"
-- creates a PHP foreach loop using a html attribute
FLEXYSTART
-- Start the output, using this tag and it's children.
FLEXYSTARTCHILDREN
-- Start the output using it's children.
flexy:ignore
-- Prevent Automatic form value replacement
An extremely powerful Tokenizer driven Template engine. Currently in BETA.
Prev
Home
Next
Pager_Sliding::Sliding()
Up
Introduction