PHP Integration


Table of Contents

  1. Constants
  2. class PHPTAL
    1. Configuration methods
      1. setOutputMode(mode)
      2. setEncoding(encoding)
      3. Other methods
    2. execute() method
    3. echoExecute() method
    4. addPreFilter() method
  3. class PHPTAL_PreFilter
  4. PHPTAL DOM
  5. interface PHPTAL_Filter
  6. interface PHPTAL_Trigger
  7. interface PHPTAL_TranslationService
    1. method setLanguage()
    2. method useDomain($domain)
    3. method setVar($key,$value)
    4. method translate($key)
    5. method setEncoding($encoding)
  8. Working with gettext
    1. Creating the translation directory structure
    2. Portable Object files
    3. Translation Domain
    4. Using Translator in PHP
    5. Variable interpolation
  9. Creating custom expression modifiers

This section is aimed at PHP developers and explains how to use and customize PHPTAL behaviors for simple and advanced usage.