2017 © Pedro Peláez
 

library smarty-module

Smarty template engine module for Zend Framework 2

image

maglnet/smarty-module

Smarty template engine module for Zend Framework 2

  • Tuesday, October 4, 2016
  • by maglnet
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,015 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 0 Open issues
  • 11 Versions
  • 9 % Grown

The README.md

Welcome to the SmartyModule for Laminas Framework!

SmartyModule is a module that integrates the Smarty templating engine with Laminas., (*1)

Installation

Composer

  1. Add "maglnet/smarty-module": "^2.0" to your composer.json file and run composer update.
  2. Add SmartyModule to your config/application.config.php file under the modules key.

Configuration

Change you Application config like this:, (*2)

...
'view_manager' => array(
    'default_suffix' => 'tpl', // <-- new option for path stack resolver
    'display_not_found_reason' => true,
    'display_exceptions'       => true,
    'doctype'                  => 'HTML5',
    'not_found_template'       => 'error/404',
    'exception_template'       => 'error/index',
    'template_map' => array(
        'layout/layout'           => __DIR__ . '/../view/layout/layout.tpl',
        'application/index/index' => __DIR__ . '/../view/application/index/index.tpl',
        'error/404'               => __DIR__ . '/../view/error/404.tpl',
        'error/index'             => __DIR__ . '/../view/error/index.tpl',
    ),
    'smarty' => array(
        'error_reporting'=> E_PARSE,
        'compile_dir' => 'path/to/compile/dir',
        'cache_dir' => 'path/to/cache/dir',
        //Other Smarty options
    ),
    'template_path_stack' => array(
        __DIR__ . '/../view',
    ),
    'plugin_path_stack' => array(
        __DIR__ . '/../smarty-plugins',
    ),
),
...

Aditional info about view manager: Laminas\View., (*3)

The Versions

04/10 2016

dev-template-paths

dev-template-paths https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

05/05 2015

dev-master

9999999-dev https://github.com/maglnet/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

05/05 2015

2.0.2

2.0.2.0 https://github.com/maglnet/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

02/05 2015

2.0.1

2.0.1.0 https://github.com/maglnet/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

02/05 2015

2.0.0

2.0.0.0 https://github.com/maglnet/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

29/04 2015

dev-add-events

dev-add-events https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

29/04 2015

dev-add-smarty-model

dev-add-smarty-model https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

12/06 2013

1.2.0

1.2.0.0 https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

12/06 2013

dev-dev

dev-dev https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

30/01 2013

1.1.0

1.1.0.0 https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

by Murga Nikolay

zf2 zend module smarty view

28/12 2012

1.0.0

1.0.0.0 https://github.com/MurgaNikolay/SmartyModule

Smarty template engine module for Zend Framework 2

  Sources   Download

The Requires

 

by Murga Nikolay

zf2 zend module smarty view