https://github.com/o/zend-twig
Zend_View compatible Twig integration for Zend Framework 1
https://github.com/o/zend-twig
Last synced: 8 months ago
JSON representation
Zend_View compatible Twig integration for Zend Framework 1
- Host: GitHub
- URL: https://github.com/o/zend-twig
- Owner: o
- Created: 2011-10-04T13:47:39.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-10-20T09:43:52.000Z (over 14 years ago)
- Last Synced: 2025-03-06T00:01:57.186Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 90.8 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.**