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.
0.1.0
2014-08-11 11:35 UTC
Requires
- php: >=5.4
- neilime/zf2-mobile-detect: 1.0
- zendframework/zend-modulemanager: ~2.1
- zendframework/zend-mvc: ~2.1
- zendframework/zend-servicemanager: ~2.1
- zendframework/zend-view: ~2.1
This package is auto-updated.
Last update: 2024-11-13 03:08:59 UTC
README
A Zend Framework 2 module based on Mobile-Detect library to easily use different templates for mobiles, tablets etc.
Requirements
Installation
- Add
"hrevert/ht-mobile-template-module": "0.0.*",
to your composer.json and runphp 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', ], ] ] ];