PHP Classes

File: src/config/templates/databases.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/config/templates/databases.twig   Download  
File: src/config/templates/databases.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: Merge pull request #112 from UmeshAawte/master

No need of border if using shadow
Date: 8 years ago
Size: 885 bytes
 

Contents

Class file image Download
{ /* "default" is (appropriately) the default database. If no database is labeled "default", then the first one will be used. Each database supports an array of possible connection points (for horizontal scaling). */ {% for key, dbs in databases %} {{ key|je }}: [ {% for i, db in dbs %} { "driver": {{ db.driver|je }}, "host": {{ db.host|je }}, "port": {% if port %}{{ db.port|je }}{% elseif db.driver == "pgsql" %}5432{% endif%}, "database": {{ db.database|je }}, "username": {{ db.username|je }}, "password": {{ db.password|je }}, "options": {{ db.options|default([])|je }} }{% if i < dbs.length %},{% endif %} {% endfor %} ] {% endfor %} }