Giter Site home page Giter Site logo

porterzhang / yii2-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weison-tech/yii2-cms

0.0 0.0 0.0 7.52 MB

An enterprise application based on yii2 basic template

Home Page: https://mym.pub

License: Other

PHP 84.84% CSS 6.41% JavaScript 8.69% Batchfile 0.06%

yii2-cms's Introduction

Yii2 CMS

This is a cms based on yii2 basic template, you can use it to build you own enterprise web site.

Directory structure

assets                   contains all assets files published by Yii2 assetsManager, like js, css, font file and so on.    
protected
    core/
        commands/        contains all commands.
        components/      contains all common components.
        config/          contains all config files.
        libs/            contains common helpers.
        messages/        contains common translation files.
        migrations/      contains common migration files.
        model/           contains common models.
        modules/         contains all core module, such as admin, file, installer module and so on.
        widgets/         contains all common widgets.
    modules/             contains all custom created modules.
    runtime/             contains all runtime files generated by application.
    vendor/              contains all components and extenstions created by composer.
static                        
    css/                 contains some css.
    img/                 contains some img.
    js/                  contains some js.
themes                   
    default/             contains application default themes.
tools/                  
    gulp/                contains js and css compress tool gulp.
uploads/                 contains all upload files.

中文文档

The online backend demo username:admin password:123456 (Please don't update the admin user)

The online frontend demo

Installation

1, Update composer asset plugin.

$ composer global require "fxp/composer-asset-plugin:*"

2, Install yii2 cms code.

$ composer create-project --prefer-dist weison-tech/yii2-cms cms

3, Create database

4, Config you virtual host so that you can visit you site.

5, According to the installation wizard step by step installation.

6, If you use application in product environment, please change the index.php who stored in root folder. when in product environment,you can compress all js and css file to one file.

7, Enter the management background configuration permissions.

8,After the permissions are configured, please modify the protected/core/config/common.php file and comment 'admin/rbac/*' under the 'notCheckPermissionAction' configuration item.

Js and css compress

1, First of all, you should install node js in your computer environment.

2, Install dependencies for this application.

$ cd tools/gulp
$ npm install

3, Use yii2 asset command to compress.

$ cd protected
$ php yii asset core/config/asset.php core/config/assets-prod.php

4, Update you application index file to production environment.

Features

  1. Adminlte template for admin theme.

  2. RBAC management

  3. I18N

  4. News management system

  5. Products management system

    ...

Preview

Install

install

install2

Frontend home page

home

Contact page

contact

Use adminlte as theme, use layerui to define alert, category tree can fold.

category

Inline editable

editable

Multiple image upload,Drag and drop sort

sort

Change theme

change theme

Change language

language

Contact

Wechat qrcode

language

Donate

If you want help author to buy pizzas.

Wechat Reward Code

language

yii2-cms's People

Contributors

xiaomalover 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.