zalviandyr / uas-blog-yii

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YII Framework

Documentation

Installation

  • Clone this repository

  • Open with text editor

  • Install all dependencies

    > composer install
  • Initialization

    > php init
  • Open main-local in common/config, to pretty url

    'urlManager' => [
        'enablePrettyUrl' => true,
        'showScriptName' => false
    ],
  • Open main-local in common/config, to setting database

    'db' => [
        'class' => 'yii\db\Connection',
        'dsn' => 'mysql:host=localhost;dbname=<your_database>',
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8',
    ],
  • Migrate database

    > php yii migrate

Run

  • Run use local development PHP
    > php -S 127.0.0.1:8000 -t frontend/web
  • You can access 127.0.0.1:8000 in browser

About

License:MIT License


Languages

Language:PHP 93.6%Language:CSS 2.4%Language:Shell 2.0%Language:Awk 1.2%Language:Batchfile 0.6%Language:Dockerfile 0.2%