zzzAutumn
- zzzAutumn 赞了评论
楼主这个显示的内容带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',
- zzzAutumn 赞了回答
在config目录下的params.php
adminEmail的设置也要修改。 谢谢~~~按着你的路径信息,我之前不能显示的图片能显示出来了
- zzzAutumn 回答了问题 无法显示图片怎么破?
我也是无法显示图片,路劲感觉是对的呀
- zzzAutumn 回复了话题 yii2 报错求助 表单方面的问题
恩恩,我也是遇到这个问题,Exception 'ReflectionException' with message 'Class require does not exist'
也是把requeired少写了一个d,我不是在提交表单里少写的,是在USER模型里少写了,所以相关联的类都要检查一下。