This module facilitates Smarty integration with ZF2 MVC applications. The current version does not support template inheretence or partial loading. Other Smarty features are currently supported.
- Zend Framework 2 (https://github.comf/zendframework/zf2)
- Smarty (http://www.smarty.net/)
- Navigate to project directory
- Add the following content to your
composer.json
file:
{
"require": {
"randlem/zf2-smarty-module": "dev-master"
}
}
- Run
php composer.phar install
- Open your ZF2 project's application.config.php and add 'Smarty' to your 'modules' parameter.
Add or append to your Application module config file (module.config.php) the new rendering strategy:
<?php
return array(
'view_manager' => array(
'strategies' => array(
'Smarty\View\Strategy'
),
),
);