fiedsch / remote-listing-bundle
Listings Bundle for 'remote' database connections
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9
README
Much like Contao's ListingBundle but for a database other than the one from the contao installation.
Installation
Make sure, you have configured the romote
database connection (see next section; don't forget to clear/rebuild
Symfony's cache after the config change). Then run composer require fiedsch/remote-listing-bundle
.
Configuration
Provide a database connection named remote
in config/config.yml
like so:
doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_mysql
host: '%database_host%'
port: '%database_port%'
dbname: '%database_name%'
user: '%database_user%'
password: '%database_password%'
charset: UTF8
remote:
driver: pdo_mysql
host: 'your_database_host'
port: 'your_database_port'
dbname: 'your_database_name'
user: 'your_database_user'
password: 'your_database_password'
Template
The template provided is just an example. Adapt to your needs in the Contao back end.