PHP code example of sheng / yiicms

1. Go to this page and download the library: Download sheng/yiicms library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sheng / yiicms example snippets

bash
cp config/db.php.default config/db.php
# 编辑 config/db.php,填入您的数据库信息
bash
export DB_DSN="mysql:host=localhost;dbname=yiicms"
export DB_USERNAME="your_user"
export DB_PASSWORD="your_password"
bash
# 前台和后台(开发模式,开启调试工具栏)
YII_DEBUG=true YII_ENV=dev php -S 0.0.0.0:8888 -t web/ router.php

# 生产模式
php -S 0.0.0.0:8888 -t web/ router.php