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.

Maintainers

👁 hrevert

Package info

github.com/hrevert/HtMobileTemplateModule

Homepage

pkg:composer/hrevert/ht-mobile-template-module

Statistics

Installs: 111

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

0.1.0 2014-08-11 11:35 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT a1509c44c3de886aa53fea07b68de99e3fec9caa

  • ojhaujjwal <bring2uo.woop@gmail.com>
  • Hrevert Technologies <info.woop@hrevert.com>

zf2

This package is auto-updated.

Last update: 2026-06-13 07:12:31 UTC


README

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

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