klintlili/yii2-mobile

mobile module base on yii2-app-basic template.

dev-master / 1.0.x-dev 2020-08-11 05:33 UTC

This package is auto-updated.

Last update: 2024-10-11 15:19:06 UTC


README

mobile module Extension for Yii 2


This extension provides a mobile module for Yii framework 2.0 applications yii2-app-basic template.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist klintlili/yii2-mobile

or add

"klintlili/yii2-mobile": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'bootstrap' => ['mobile'],
    'modules' => [
        'mobile' => [
            'class' => 'klintlili\mobile\Module'
        ],
        // ...
    ],
    ...
];