2017 © Pedro Peláez
 

project yii2-cms

An enterprise application based on yii2 basic template

image

weison-tech/yii2-cms

An enterprise application based on yii2 basic template

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 33 % Grown

The README.md

Yii2 CMS

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

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.

中文文档, (*2)

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

The online frontend demo, (*4)

Installation

1, Update composer asset plugin., (*5)

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

2, Install yii2 cms code., (*6)

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

3, Create database, (*7)

4, Config you virtual host so that you can visit you site., (*8)

5, According to the installation wizard step by step installation., (*9)

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., (*10)

7, Enter the management background configuration permissions., (*11)

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

Js and css compress

1, First of all, you should install node js in your computer environment., (*13)

2, Install dependencies for this application., (*14)

$ cd tools/gulp
$ npm install

3, Use yii2 asset command to compress., (*15)

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

4, Update you application index file to production environment., (*16)

Features

  1. Adminlte template for admin theme.
  2. RBAC management
  3. I18N
  4. News management system
  5. Products management system, (*17)

    ..., (*18)

Preview

Install, (*19)

install, (*20)

install2, (*21)

Frontend home page, (*22)

home, (*23)

Contact page, (*24)

contact, (*25)

Use adminlte as theme, use layerui to define alert, category tree can fold., (*26)

category, (*27)

Inline editable, (*28)

editable, (*29)

Multiple image upload,Drag and drop sort, (*30)

sort, (*31)

Change theme, (*32)

change theme, (*33)

Change language, (*34)

language, (*35)

Contact

Wechat qrcode, (*36)

language, (*37)

If you want help author to buy pizzas., (*38)

Wechat Reward Code, (*39)

language, (*40)

The Versions