定制 dixonsatit/yii2-agency-theme 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dixonsatit/yii2-agency-theme

最新稳定版本:1.0.2

Composer 安装命令:

composer require dixonsatit/yii2-agency-theme

包简介

Yii 2 Agency Theme Asset Bundle

README 文档

README

Yii 2 Agency Theme base on Agency - One Page Bootstrap Theme

This package contains an Asset Bundle for Yii 2.0 Framework which registers the CSS files for the Agency - One Page Bootstrap Theme

Installation

The preferred way to install this extension is through composer.

Either run

php composer require dixonsatit/yii2-agency-theme

or add

"dixonsatit/yii2-agency-theme": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component:

        'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@dixonsatit/agencyTheme/views'
                ]
            ]
        ],

Customization

  • create folder /themes/agency you application
  • copy file from vendor/dixonsatit/yii2-agency-theme/views to /themes/agency/
  • edit config/main.php to:
 'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@app/themes/agency'
                ]
            ]
        ],

Agency Theme

เป็น theme ที่สร้างมาจาก Agency - One Page Bootstrap Theme โดยใช้ Asset Bundle for Yii 2.0 Framework

การใช้งาน

หลังจากติดตั้งเสร็จ ให้ทำการตั้งค่าที่ config/main.php

        'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@dixonsatit/agencyTheme/views'
                ]
            ]
        ],

ในการใช้งานจริงเราไม่ควรแก้ไขไฟล์ที่ vendor/dixonsatit/yii2-agency-theme/views เราควร copy ไฟล์ view มาไว้ที่ application ของเรา

  • สร้างโฟลเดอร์ /themes/agency ที่ application ของคุณ
  • copy ไฟล์ทั้งหมดที่อยู่ใน view จาก vendor/dixonsatit/yii2-agency-theme/views ไปไว้ที่ /themes/agency ใน application ของคุณ
  • ตั้งค่า view ใหม่ เป็น
 'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@app/themes/agency'
                ]
            ]
        ],

จากนั้นคุณสามารถปรับเปลี่ยน view ต่างๆ ได้ตามต้องการ ^^

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 3
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-22