2017 © Pedro Peláez
 

library zf2-smarty

Smarty module for Zend Framework 2

image

ngyuki/zf2-smarty

Smarty module for Zend Framework 2

  • Friday, April 17, 2015
  • by ngyuki
  • Repository
  • 1 Watchers
  • 4 Stars
  • 236 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Smarty module for Zend Framework 2

Installation

Copy config/smarty.global.php to your config/autoload/ directory., (*1)

$ cp vendor/ngyuki/zf2-smarty/config/smarty.global.php config/autoload/

Fix config/autoload/smarty.global.php, (*2)

<?php
return array(
    'smarty' => array(
        // ...
    ),
);

Add ZendSmarty in your application.config.php, (*3)

<?php
return array(
    'modules' => array(
        'Application',
        'ZendSmarty', // this is it!
    ),

    // ...
);

Using ZF2 View Helpers

{* simple with echo (not support method chain) *}
{url bar [id => 12345]}

{* simple without echo (not support method chain) *}
{do headTitle "Index Page"}

{* method chain *}
{$this->headTitle("ZF2 Smarty")->setSeparator(' - ') nofilter}

The Versions

17/04 2015

dev-master

9999999-dev https://github.com/ngyuki/zf2-smarty

Smarty module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngyuki

zf2 module smarty

17/04 2015

dev-tmp/example-pr-1

dev-tmp/example-pr-1 https://github.com/ngyuki/zf2-smarty

Smarty module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar ngyuki

zf2 module smarty