2017 © Pedro Peláez
 

yii2-extension yii2-template-messages

Template Message with placeholder

image

ignatenkovnikita/yii2-template-messages

Template Message with placeholder

  • Monday, March 26, 2018
  • by ignatenkovnikita
  • Repository
  • 1 Watchers
  • 0 Stars
  • 456 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

Template Message with placeholder

Template Message with placeholder, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist ignatenkovnikita/yii2-template-messages "*"

or add, (*5)

"ignatenkovnikita/yii2-template-messages": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

'modules'=>[
        'template' => [
            'class' => 'ignatenkovnikita\template\Module',
        ],
    ],

In Code uses, (*8)

Template::replace('template_name', [
        'your_variable' => 'value
]);

Example Add in migration, (*9)

  $rows = [
            [
                'promo-code-send',
                'Отправка купона пользователю',
                '["promo_code"]',
                'Трэк {promo_code}'
            ],

        ];

        $this->batchInsert('{{template}}', ['id', 'title', 'placeholders', 'message'], $rows);


        $this->update('{{%template}}',['widget_options' => '{"toolbar":false,"pastePlainText":true,"buttonSource":true,"paragraphize":false}']);

Apply migration, (*10)

./console/yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-template-messages/migrations/ 

TODO - add suppport email - refactoring, (*11)

The Versions

26/03 2018

dev-master

9999999-dev

Template Message with placeholder

  Sources   Download

BSD-3-Clause

The Requires

 

template extension yii2 message

27/06 2017

v1.0

1.0.0.0

Template Message with placeholder

  Sources   Download

BSD-3-Clause

The Requires

 

template extension yii2 message