hrevert/ht-mobile-template-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hrevert/ht-mobile-template-module

Composer 安装命令:

composer require 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.

关键字:

README 文档

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

统计信息

  • 总下载量: 111
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固