2017 © Pedro Peláez
 

symfony-bundle email-template-bundle

Twig extension for quick integration of email templates that you manage in the database

image

ccc/email-template-bundle

Twig extension for quick integration of email templates that you manage in the database

  • Tuesday, September 16, 2014
  • by michael-langford
  • Repository
  • 8 Watchers
  • 1 Stars
  • 105 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CCCEmailTemplateBundle

Email template form type with Ajax (using jQuery) to populate a textarea field and list/insert/update/delete pages to manage email templates in a Doctrine-managed database. Highly experimental and subject to change. Use at your own risk., (*1)

Installation

Add the package to your dependencies

``` json { "require": { "ccc/email-template-bundle": "dev-master" ... } }, (*2)


### Register the bundle in your kernel ``` php public function registerBundles() { $bundles = array( // ... new FOS\JsRoutingBundle\FOSJsRoutingBundle(), new CCC\EmailTemplateBundle\EmailTemplateBundle(), // ... );

Update your packages

``` bash $ php composer.phar update, (*3)


### Update your database schema ``` bash $ php app/console doctrine:schema:update

Add routes

``` yaml, (*4)

app/config/routing.yml

ccc_email_template: resource: "@CCCEmailTemplateBundle/Resources/config/routing.yml" prefix: /, (*5)


### Translations If you wish to use default text provided in this bundle, you have to make sure you have translator enabled in your config. ``` yaml # app/config/config.yml framework: translator: ~

Usage

After populating database with some templates you can use by:, (*6)

php $builder ->add('email_template', 'email_template_select', array( 'required' => false, 'label' => 'email' )); See /email-template/select for an example, (*7)

Routes

Available in config/routing/emailtemplate.yml, (*8)

  • /email-template/ - lists all templates available
  • /email-template/new - create a new template
  • /email-template/{id}/show - show the details of a template
  • /email-template/{id}/edit - edit a template
  • /email-template/{id}/delete - delete a template

The Versions

16/09 2014

dev-master

9999999-dev http://github.com/tamago-db/EmailTemplateBundle

Twig extension for quick integration of email templates that you manage in the database

  Sources   Download

MIT

The Requires

 

by Evan Owens
by Michael Langford

twig form symfony email-templates form-type