Phrame 3 Documentation Home  |  Features  |  Downloads  |  Contact Documentation > How To Use Phrame Tag Libraries
How To...
Install Phrame 3
Configure The Phrame Container
Configure An Action Server
Configure The Error Handler
Define A Module Configuration
Trigger The Phrame Container
Trigger An Action Server
Use Language Negotiation
Use Session Validation
Load Classes Just In Time
 
How To Use Phrame Tag Libraries
Much similar to Java, Phrame supports a mechanism to enhance the functionality of a web page through tag libraries. Phrame tag libs contain variables and functions that can be used in a (PHP) web resource, for instance to get access to the ServerContext, HttpSession and HttpRequest storage containers.

Configuring Phrame tag libraries (pre 3.1 versions)
To make use of Phrame taglibs you have to include a _TAGLIBS parameter in the server configuration and specify an array with the paths to the taglibs (relative to your web application root) as its value.

Configuring Phrame tag libraries (version 3.1 and later)
To make use of Phrame taglibs you have to include the _TAGLIBS parameter in the Phrame container configuration. See the code snippet below.

$containerConfig = array(

  _TAGLIBS => array(

    // Standard Phrame taglib
    '/WEB-INF/lib/phrame/util/PhrameTagLib.php'

    // Other taglibs
    ,'/path/to/myOwnTaglib.php'
    ,'/path/to/mySecondTaglib.php'
  )

  ...
  other container configuration parameters go here
  ...

);

The standard Phrame tag library
Phrame comes with a standard tag library called PhrameTagLib.php that resides in Phrame's util subpackage. This library makes the following variables available to your (PHP) web resources:

Server context etc. Module configuration, action mapping, action form Action errors, message resources Miscellaneous
© 2005 Pieter A. van Stempvoort. All rights reserved.
Hosted by www.Geocities.ws

1