Download the PHP package gkralik/zf3-smarty-module without Composer
On this page you can find all versions of the php package gkralik/zf3-smarty-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gkralik/zf3-smarty-module
More information about gkralik/zf3-smarty-module
Files in gkralik/zf3-smarty-module
Package zf3-smarty-module
Short Description Laminas / ZF3 module providing a Smarty rendering strategy
License Apache-2.0
Homepage https://www.github.com/gkralik/zf3-smarty-module
Informations about the package zf3-smarty-module
zf3-smarty-module
This is a module for integrating the Smarty template engine with Laminas or Zend Framework 3.
Version 2.x supports Laminas.
Version 1.x supports Zend Framework 3. See branch 1.x
Installation with Composer
Installing via Composer is the only supported method.
Configuration
For information on supported options refer to the module config file.
There is also a sample configuration file with all available configuration options.
You can set options for the Smarty engine under the smarty_options
configuration key (eg force_compile
, etc).
Pay attention to the compile_dir
and cache_dir
keys. Smarty needs write access to the directories specified there.
Documentation
Using Zend Framework view helpers
Using view helpers of ZF3 is supported. Just call the view helper as you would do in a PHTML template:
All versions of zf3-smarty-module with dependencies
smarty/smarty Version ^3.1 || ^4.0
laminas/laminas-view Version ^2.0
laminas/laminas-servicemanager Version ^3.0
laminas/laminas-dependency-plugin Version ^2.0