2017 © Pedro Peláez
 

library ht-template-resolver-module

HtTemplateResolverModule is a Zend Framework 2 module which allows us to easily create custom template path resolvers

image

hrevert/ht-template-resolver-module

HtTemplateResolverModule is a Zend Framework 2 module which allows us to easily create custom template path resolvers

  • Saturday, May 17, 2014
  • by hrevert
  • Repository
  • 2 Watchers
  • 0 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

HtTemplateResolverModule

Master Branch Build Status Latest Stable Version Latest Unstable Version Total Downloads Scrutinizer Code Quality, (*1)

HtTemplateResolverModule is a Zend Framework 2 module which allows us to easily create custom template path resolvers, (*2)

DEPRECATED

This module is deprecated. Please use Delegator service factories to create custom template path resolvers., (*3)

Requirements

Installation

  • Add "hrevert/ht-template-resolver-module": "0.0.*", to your composer.json and run php composer.phar update
  • Enable the module in config/application.config.php

Basic Usage

<?php  
namespace Application\View\Resolver;

use Zend\View\Resolver\ResolverInterface;

use Zend\View\Renderer\RendererInterface as Renderer;

class MyResolver implements ResolverInterface
{
    public function resolve($name, Renderer $renderer = null)
    {
      // write your code here 
    }
}

<?php
return [
    'ht_template_resolver' => [
        'resolvers_plugin_manager' => [
            'invokables' => [
                'my_resolver' => 'Application\View\Resolver\MyResolver',
            ]
        ]
    ]
];
<?php
return [
    'ht_template_resolver' => [
        'resolvers' => [
            'my_resolver' => 200, // 200 means priority, the resolvers with highest priority are consulted first
        ]
    ]
];

The Versions

17/05 2014

dev-master

9999999-dev https://github.com/hrevert/HtTemplateResolverModule

HtTemplateResolverModule is a Zend Framework 2 module which allows us to easily create custom template path resolvers

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

template zf2 module

26/03 2014

0.0.1

0.0.1.0 https://github.com/hrevert/HtTemplateResolverModule

HtTemplateResolverModule is a Zend Framework 2 module which allows us to easily create custom template path resolvers

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

template zf2 module