Skip to content

This is a Smarty integration module for ZF2 MVC applications.

Notifications You must be signed in to change notification settings

randlem/zf2-smarty-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summery

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.

Requirements

Installation

Composer Installation

  1. Navigate to project directory
  2. Add the following content to your composer.json file:
{
    "require": {
	    "randlem/zf2-smarty-module": "dev-master"
	}
}
  1. Run php composer.phar install
  2. Open your ZF2 project's application.config.php and add 'Smarty' to your 'modules' parameter.

How to add Smarty rendering to ZF2

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'
		),
	),
);

About

This is a Smarty integration module for ZF2 MVC applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages