承接 stupidkitty/banner 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

stupidkitty/banner

Composer 安装命令:

composer require stupidkitty/banner

包简介

Banner module for Yii2

README 文档

README

Yii2 banners module

App configure module

'modules' => [
    'banner' => [
        'class' => SK\BannerModule\Module::class,
    ],
],
'container' => [
    'singletons' => [
        'SK\BannerModule\Banner' => [
            'class' => \SK\BannerModule\Banner::class,
            'templatesPath' => '@app/views/banners' // path for ad spots templates
        ]
    ]
]

Migrations

config:
'controllerMap' => [
    'migrate' => [
        'class' => yii\console\controllers\MigrateController::class,
        'migrationNamespaces' => [],
        'migrationPath' => [
            '@vendor/stupidkitty/banner/src/Migration',
        ],
    ],
],

or composer:

"scripts": {
    "post-update-cmd": [
        "yes | php yii migrate --migrationPath=@vendor/stupidkitty/banner/src/Migration"
    ],
    "post-install-cmd": [
        "yes | php yii migrate --migrationPath=@vendor/stupidkitty/banner/src/Migration"
    ]
}

Usage

In template:

<?php
use SK\BannerModule\Banner;

//...
// single
<?= Banner::show('banner.name') ?>

// or multiple
<?= Banner::show(['banner.first', 'banner.second']) ?>

// Spot template. Template should exists.
<?= Banner::show(['banner.first', 'banner.second'], ['template' => 'default']) ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固