Skip to content
/ zend-twig Public

Zend_View compatible Twig integration for Zend Framework 1

Notifications You must be signed in to change notification settings

o/zend-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zend Framework and Twig integration

This integration tested on Zend Framework 1.11.10, Twig 1.20 and PHP 5.3.8.

Installation

  • Download Twig and place contents of lib/Twig folder to /path/to/app/library/Twig.
  • Place App folder to /path/to/app/library folder.
  • Update files of /path/to/app/application/views/scripts with application/views/scripts files.

Add following lines to your application.ini file.

[production]    
autoloaderNamespaces[] = "App"
autoloaderNamespaces[] = "Twig"
pluginPaths.App_Resource_ = "App/Resource/"
resources.twig.cache = "/path/to/cache/folder"

[development : production]
resources.twig.debug = true

Note : This integration changes your view filenames extension to twig instead of phtml.

About

Zend_View compatible Twig integration for Zend Framework 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages