Yii2 邮件

1.2.0 2015-11-05 08:05 UTC

This package is not auto-updated.

Last update: 2024-09-28 16:36:17 UTC


README

安装

安装此扩展的首选方法是使用 composer

运行以下命令之一

php composer.phar require infoweb-internet-solutions/yii2-cms-email "*"

"infoweb-internet-solutions/yii2-cms-email": "*"

将以下内容添加到您的 composer.json 文件的 require 部分。

用法

一旦安装了此扩展,只需按照以下方式修改您的应用程序配置

您的后端配置如下

return [
    ...
    'modules' => [
        'email' => [
            'class' => 'infoweb\email\Module'
        ],
    ],
    ...
];

导入翻译并使用类别 'infoweb/email'

yii i18n/import @infoweb/email/messages

要使用此模块,请执行 yii migration

yii migrate/up --migrationPath=@vendor/infoweb-internet-solutions/yii2-cms-email/migrations