Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ngyhd/forum

Repository files navigation

描述

一个简单的聊天论坛

用法

php init //初始化YII2框架,输入0,开发环境

Configure your database in main-local.php

   'components' => [
        'db' => [ //配置数据库连接
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=192.168.199.101;dbname=mylife',
            'username' => 'root',
            'password' => 'root',
            'charset' => 'utf8',
        ],
       'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            // 'useFileTransport' => true, //测试可以开启这个
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.qq.com',
                'username' => 'your email', //邮箱账号
                'password' => 'the password of your email', //邮箱授权码
                'port' => '465',
                'encryption' => 'ssl',

            ],
        ],
    ],

About

基于YII2高级版制作的论坛程序,支持发帖、在线聊天、点赞等功能

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •