esempla/template

Build pdf and mail template

1.1.1 2018-09-19 09:33 UTC

This package is auto-updated.

Last update: 2024-04-17 22:43:21 UTC


README

Installation

The preferred way to install this extension is through composer.

Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

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

or add

"esempla/template": "1.0.*"

to the `require` section of your composer.json file.

Migrations

The extension has been created with database table. You should execute database migrations.(PostgreSQL ® recommended)

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

Module

The extension has been created as a module. You should configure the module as shown below:

'modules' => [
	...

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

To acces module

Go to http:://you_server/TemplateBuilder