yiimaker / yii2-email-templates Goto Github PK
View Code? Open in Web Editor NEWExtension for creating email templates and manage using your site dashboard
License: BSD 3-Clause "New" or "Revised" License
Extension for creating email templates and manage using your site dashboard
License: BSD 3-Clause "New" or "Revised" License
Hello,
I have an error on the latest version, I think the problem is the interface class as the paramter in the construct method of templatemanager.php
Exception (Not instantiable) 'yii\di\NotInstantiableException' with message 'Can not instantiate ymaker\email\templates\repositories\EmailTemplatesRepositoryInterface.'
in C:\xampp\htdocs\veto\vendor\yiisoft\yii2\di\Container.php:372
Stack trace:
#0 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('ymaker\\email\\te...', Array, Array)
#1 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\di\Container.php(462): yii\di\Container->get('ymaker\\email\\te...')
#2 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\di\Container.php(370): yii\di\Container->resolveDependencies(Array, Object(ReflectionClass))
#3 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('ymaker\\email\\te...', Array, Array)
#4 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('ymaker\\email\\te...', Array, Array)
#5 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#6 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('templateManager', false)
#7 C:\xampp\htdocs\veto\models\Mail.php(175): yii\base\Module->get('templateManager', false)
#8 C:\xampp\htdocs\veto\controllers\MailController.php(45): app\models\Mail->setCorrectTemplate()
#9 [internal function]: app\controllers\MailController->actionCreate()
#10 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#11 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#12 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('create', Array)
#13 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('mail/create', Array)
#14 C:\xampp\htdocs\veto\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#15 C:\xampp\htdocs\veto\web\index.php(12): yii\base\Application->run()
#16 {main}
Hi!
I configured the extension and generated the tables trough migrate.
How can I reach the generator in my browser?
Thank you.
C.
На форме добавления/редактирования шаблона, нет селекта для выбора языка. Мультиязычность есть, но пользоваться ей нельзя получается так)
How to chnage view file for creating template?
Hello Team,
You guys really did the good work. I have integrated it into my application as defined I am using a yii2 advance template but unable to add in GII tools. I have added following code to my frontend/config/main.php
in component section:
'modules' => [
'class' => 'yii\gii\Module',
'generators' => [
'email-templates' => [
'class' => \ymaker\email\templates\gii\Generator::class,
'templates' => [
'default' => '@vendor/yiimaker/yii2-email-templates/src/gii/default',
],
],
],
],
Could you please guide me to implement it. I tried all ways and ran migration tool but no success. It is not showing email template generator in GII.
I am getting a "Not instantiable" error when using the TemplateManager component, I have declared it in the config like:
//...
'components' => [
//...
'TemplateManager' => [
'class' => \ymaker\email\templates\components\TemplateManager::class,
],
//...
],
and the error is triggered when I call:
\Yii::$app->get('templateManager');
Other features like the GII generator and the backend module seems to be working ok.
I am using Yii 2.0.14.2 and PHP 7.2.3
I tried installing this extension through composer in my Yii2 Advanced application. But it doesn't show up in gii Generators list. Is that i am missing something or this extension doesn't support YII2 Advanced ?
Translations don't saves on Yii 2.0.14 because model's relations resets after save.
In 3.0.0 version redactor will be changed to TinyMCE or CKEditor because imperavi is not supported.
I want to configure the system to send an error message. But the view is not friendly when looking at the phone. Can you write a beautiful view ? thinks
Hi,
I would like to not only put text placeholder within the template - I would need placeholders for widgets which can although accept parameters - is this working already? How much code change would it need to make it possible?
Thanks Philipp
$template = Yii::$app->get('templateManager')->getTemplate('register-notification');
This piece of snippet never return object in my case.
Invalid Configuration – yii\base\InvalidConfigException
Unable to locate message source for category 'back/email-templates'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.