Giter Club home page Giter Club logo

yii2-agency-theme's Introduction

Agency Theme

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 ต่างๆ ได้ตามต้องการ ^^

yii2-agency-theme's People

Contributors

dixonsatit avatar

Watchers

James Cloos avatar THAWEESAK BOONSIT avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.