zzzAutumn

zzzAutumn

这家伙有点懒,还没写个性签名!

  • 财富值25
  • 威望值0
  • 总积分35

个人信息

  • 赞了评论

    楼主这个显示的内容带html标签怎么去除啊

  • 我的设置,首先我用的是basic版
    在config/web.php中
    /*'user' => [

            'identityClass' => 'app\models\User',
            'enableAutoLogin' => true,
        ],
    

    */将原来的user注释掉,
    在components中添加:
    'mailer' => [

            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@app/mailer',
            'useFileTransport' => false,
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => 'smtp.163.com',
                'username' => 'xxxx@163.com',
                'password' => "xxxx",
                'port' => '587',   //你也可以试试994 、465这些端口
                'encryption' => 'ssl',
            ],
    

    然后在components外添加:
    'modules' => [

        'user' => [
            'class' => 'dektrium\user\Module',
            'enableUnconfirmedLogin' => true,
            'confirmWithin' => 21600,
            'cost' => 12,
            'admins' => ['admin']
        ],
    ],
    

    在config/param.php中
    //'adminEmail' => 'admin@example.com', 改为

    'adminEmail' =>'xxxx@163.com',
    
  • 赞了回答

    在config目录下的params.php
    adminEmail的设置也要修改。

  • 谢谢~~~按着你的路径信息,我之前不能显示的图片能显示出来了

  • 我也是无法显示图片,路劲感觉是对的呀1.jpeg

  • 恩恩,我也是遇到这个问题,Exception 'ReflectionException' with message 'Class require does not exist'
    也是把requeired少写了一个d,我不是在提交表单里少写的,是在USER模型里少写了,所以相关联的类都要检查一下。

  • 回复了 的回答

    使用 <?= Html::a() ?> 或者 <?= Url::to() ?> 😃

    感谢~~~

试用期 等级规则
35/50
资料完整度
10/100
用户活跃度
0/100

Ta的关注

0

Ta的粉丝

0

Ta的访客

1