2017 © Pedro Peláez
 

library ht-mobile-template-module

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

image

hrevert/ht-mobile-template-module

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

  • Friday, February 19, 2016
  • by hrevert
  • Repository
  • 2 Watchers
  • 3 Stars
  • 104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

HtMobileTemplateModule

A Zend Framework 2 module based on Mobile-Detect library to easily use different templates for mobiles, tablets etc., (*1)

Requirements

  1. Zend Framework 2
  2. Mobile-Detect
  3. zf2-mobile-detect

Installation

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

Basic Usage

<?php
return [
    'ht_mobile_template' => [
        'path_stack' => [
            'mobile' => [
                __DIR__ . '../view/mobile/',
                __DIR__ . '../../AnotherModule/view/mobile/',
            ],
            'tablet' => [
                __DIR__ . '../view/tablet/',
                __DIR__ . '../../AnotherModule/view/tablet/',              
            ] 
        ],
        'map' => [
            'mobile' => [
                'application/index/index' => __DIR__ . '../view/mobile/application/index/index.phtml',
            ],
            'tablet' => [
                'application/index/index' => __DIR__ . '../view/tablet/application/index/index.phtml',
            ],            
        ]
    ]
];

The Versions

19/02 2016

dev-master

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

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

zf2

11/08 2014

0.1.0

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

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

zf2

25/07 2014

0.0.3

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

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

zf2

25/07 2014

0.0.2

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

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

zf2

31/03 2014

0.0.1

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

A Zend Framework 2 module to based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.

  Sources   Download

MIT

The Requires

 

by Avatar ojhaujjwal
by Hrevert Technologies

zf2