esempla/template

构建PDF和邮件模板

安装: 115

依赖: 0

建议者: 0

安全: 0

类型:yii2-extensions

1.1.1 2018-09-19 09:33 UTC

This package is auto-updated.

Last update: 2024-09-17 23:30:30 UTC


README

安装

安装此扩展的首选方式是通过 composer

注意:检查此扩展的依赖和需求,请查看 composer.json。阅读此 网络提示/wiki 了解如何为应用程序的 composer.json 设置 minimum-stability 设置。

运行以下命令之一:

$ php composer.phar require esempla/template "1.0.*"

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

"esempla/template": "1.0.*"

```

迁移

扩展已经创建了一个数据库表。你应该执行数据库迁移。(推荐使用 PostgreSQL ®)

 php yii migrate --migrationPath="vendor/esempla/template/migrations"

模块

扩展已经被创建为一个模块。你应该按照以下方式配置模块

'modules' => [
	...

    'TemplateBuilder' => [
        'class' => 'esempla\template\TemplateBuilder',
        'params'=>[
           'assignedClassNamespace'=>'your class for private templates',
           'assigned_field'=>'fild that wild be maped'
        ]
    ],
	...
],

访问模块

前往 http:://you_server/TemplateBuilder