PHPTAL
PHP
Template Attribute Language
News
Introduction
Download
Manuals
FAQ
Mailinglist
Next
PHPTAL
Manual
PHP
Template Attribute Language
Laurent
Bédubourg
Kornel
Lesiński
Dan
Sheppard
Anton
Valeriyevich
Andriyevskyy
Revision History
Table of Contents
Introduction
Why use
PHPTAL
Installation
First example
Template Attribute Language
Attribute priority
TAL
namespace
tal:define
tal:condition
tal:repeat
tal:omit-tag
tal:replace
tal:content
tal:attributes
Optional attributes
tal:on-error
METAL
namespace
metal:define-macro
metal:use-macro
metal:define-slot
metal:fill-slot
I18N
namespace
i18n:translate
i18n:attributes
i18n:name
XHTML
in translations
PHPTAL
namespace
phptal:debug
phptal:cache
Instant refreshing
Limitations:
phptal:tales
tal:block
PHPTALES
path:
Alternative
PHP
operator syntax
string:
php:
not:
exists:
true:
default
structure
Expression chains
PHP
Integration
Constants
class
PHPTAL
Configuration methods
setOutputMode(mode)
setEncoding(encoding)
Other methods
setTemplateRepository(string_or_array)
setPhpCodeDestination(path)
setPhpCodeExtension(string)
setCacheLifetime(num_days)
setForceReparse(boolean)
execute() method
echoExecute() method
Limitations
addPreFilter() method
class PHPTAL_PreFilter
filter()
filterDOM()
getCacheId()
getPHPTAL()
PHPTAL
DOM
interface PHPTAL_Filter
Multiple post filters
interface PHPTAL_Trigger
interface PHPTAL_TranslationService
method setLanguage(…)
method useDomain($domain)
method setVar($key,$value)
method translate($key)
method setEncoding($encoding)
Working with gettext
Creating the translation directory structure
Portable Object files
Translation Domain
Using Translator in
PHP
Variable interpolation
Creating custom expression modifiers
A. Note for system administrators
B. Useful links
C. Greetings