/email-templates/default/index
yiimaker/yii-email-templates/src/views/default/update.php
přidat do widgetu Imperavi Redactor
nastavení [
'settings' => [
'paragraphize' => false,
'replaceDivs' => false,
'linebreaks' => true,
'enterKey' => false
]
]
Do configu bootstrap.php přidat:
\Yii::$container->set(
\ymaker\email\templates\repositories\EmailTemplatesRepositoryInterface::class,
\ymaker\email\templates\repositories\EmailTemplatesRepository::class
);
Do configu main.php do sekce modules přidat:
'email-templates' => [
'class' => \ymaker\email\templates\Module::class,
'languageProvider' => [
'class' => \motion\i18n\ConfigLanguageProvider::class,
'languages' => [
/* [
'locale' => 'en-US',
'label' => 'English',
],*/
[
'locale' => 'cs-CZ',
'label' => 'Česky',
],
do sekce components přidat:
'templateManager' => [
'class' => \ymaker\email\templates\components\TemplateManager::class,
],
],
'defaultLanguage' => [
'locale' => 'cs-CZ',
'label' => 'Česky',
],
],
],
Do configu main.php sekce i18n přidat:
'email-templates*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@backend/translations',
'fileMap' => [
'email-templates' => 'email-templates.php',
'app/error' => 'error.php',
],
],
Objednávky v PDF
styl nastavit v backend/web/css/orderemplate