ZTal makes integrating the PHP templating system PHPTAL into Zend Framework easy.
PHP HTML ApacheConf
Latest commit 15c47a9 Jun 14, 2016 @jackw jackw committed on GitHub Merge pull request #26 from namesco/develop
Button form macro now accepts a disabled parameter.
Failed to load latest commit information.
Table Save HTTP parameters in ZTable so they are available to the paginator… Dec 4, 2014
Tal It's now possible to add 'data' attributes on select options. Aug 17, 2015
Tales Fixed a bug where element errors would fail if the named element supp… Jun 7, 2016
Translate/Adaptor Namespace changes for Ztal\Translate\Adaptor\Gettext, coding standard… Mar 12, 2013
example Remove trailing whitespace from ends of lines, as it's been bugging m… Mar 11, 2013
tests Correct the method name. Mar 12, 2013
.gitignore Fixed the coding standard violations Jan 23, 2012
Form.php Namespace changes for Ztal\Form. Mar 12, 2013
LICENSE Added README and LICENSE files. Dec 17, 2010
Mail.php Move the *creation* of the view back into the constructor, but keep t… Sep 19, 2013
README.md Update changelog, and README regarding the PHPTAL requirement. May 7, 2013
build.xml Updated to use phpdocumentor2 Apr 8, 2015
package.xml Bumping pear version number to the next release Mar 11, 2014



ZTal is an open source project to replace the View and Form capabilities of Zend Framework with the PHPTAL templating engine.

ZTal provides the glue that allows Zend Framework to use PHPTAL templates as Views and Layouts while also allowing PHPTAL to access Zend Framework's Translation facilities. In particular:

  • ZTal replaces Zend View and Layout objects with PHPTAL equivalents.
  • ZTal has macros to render Zend_Form and other common Zend objects such as Zend_Date and Zend_Currency.
  • ZTal has access to Zend_Translate, unifying translation support.
  • ZTal handles PHPTAL translation namespaces where they are not supported natively in Zend_Translate.
  • ZTal provides plural support to PHPTAL's translation capabilities.
  • ZTal can use Zend_Cache to cache rendered PHPTAL pages.
  • ZTal provides a Zend_Mail subclass to use templates with email.


For more information and documentation please visit the ZTal Wiki or look through the example Zend application provided.


As of v1.5.0, ZTal requires PHPTAL 1.2.3 (currently unreleased) or later. Alternatively, you can apply a tiny patch to 1.2.2.

Other Questions

Feel free to chat with the ZTal developers (and others) on IRC in the #ztal channel on Freenode.


See LICENSE for more details.