Skip to content

A quick build to try out and figure out how to implement the ibrose newsletter bundle. before including it in portal

Notifications You must be signed in to change notification settings

nslocomotives/newsletter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newsletter

A quick build to try out and figure out how to implement the ibrose newsletter bundle. before including it in portal.

Create the databases

mandants are used to provide seperate databases for clients/organisations.

# create the empty databases
$ app/console doctrine:database:create
$ app/console doctrine:database:create --connection=mandantA
$ app/console doctrine:database:create --connection=mandantB

# create the database schemas
$ php app/console doctrine:schema:create --em default
$ php app/console doctrine:schema:create --em mandantA
$ php app/console doctrine:schema:create --em mandantB

# enable the mandants (insert them in the defined database - already existings will be ignored)
$ php app/console ibrows:newsletter:mandants:enable

register three new users by using the web interface

http://yoururl.com/web/register

Connect a user (e.g. FOSUser) from the default connection with a mandant

    use newsletter;
    UPDATE `fos_user` SET mandant = "default" WHERE username = "YourUsername";
    UPDATE `fos_user` SET mandant = "mandantA" WHERE username = "YourUsernameA";
    UPDATE `fos_user` SET mandant = "mandantB" WHERE username = "YourUsernameB";

ToDo

About

A quick build to try out and figure out how to implement the ibrose newsletter bundle. before including it in portal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published