|
@@ -0,0 +1,94 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+
|
|
|
+ *
|
|
|
+ * GLOBAL CONFIG
|
|
|
+ * ===============
|
|
|
+ * global configuration file
|
|
|
+ *
|
|
|
+ * - initialize modules
|
|
|
+ * - initialize global resources (db, session, [cache] etc)
|
|
|
+ * - module settings will override global settings
|
|
|
+ *
|
|
|
+ */
|
|
|
+return array(
|
|
|
+ 'modules' => array(
|
|
|
+ 'App',
|
|
|
+ 'Admin',
|
|
|
+ 'Members',
|
|
|
+ 'Listings',
|
|
|
+ 'Install',
|
|
|
+ ),
|
|
|
+ 'locale' => array(
|
|
|
+ 'default' => 'en_US',
|
|
|
+ ),
|
|
|
+ 'db' => array(
|
|
|
+ 'adapter' => '\\Cube\\Db\\Adapter\\PDO\\Mysql',
|
|
|
+ 'host' => '%DB_HOST%',
|
|
|
+ 'dbname' => '%DB_NAME%',
|
|
|
+ 'username' => '%DB_USERNAME%',
|
|
|
+ 'password' => '%DB_PASSWORD%',
|
|
|
+ 'prefix' => '%TABLES_PREFIX%',
|
|
|
+ 'charset' => 'utf8'
|
|
|
+ ),
|
|
|
+ 'cache' => array(
|
|
|
+ 'folder' => __DIR__ . '/../cache',
|
|
|
+ 'queries' => false,
|
|
|
+ 'metadata' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'mail' => array(
|
|
|
+ 'transport' => 'mail',
|
|
|
+ 'layouts_path' => __DIR__ . '/../themes/standard',
|
|
|
+ 'views_path' => __DIR__ . '/../module/App/view/emails',
|
|
|
+ 'layout_file' => 'email.phtml',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'navigation' => array(
|
|
|
+ 'data_type' => 'xml',
|
|
|
+ 'data_file' => __DIR__ . '/../module/App/config/data/navigation/navigation.xml',
|
|
|
+ 'views_path' => __DIR__ . '/../module/App/view',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'session' => array(
|
|
|
+ 'namespace' => '%SESSION_NAMESPACE%',
|
|
|
+ 'secret' => '%SESSION_SECRET%',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'folders' => array(
|
|
|
+ 'themes' => 'themes',
|
|
|
+ 'img' => 'img',
|
|
|
+ 'uploads' => 'uploads',
|
|
|
+ 'cache' => 'uploads/cache',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'paths' => array(
|
|
|
+ 'base' => __DIR__ . '/..',
|
|
|
+ 'languages' => __DIR__ . '/data/language',
|
|
|
+ 'themes' => __DIR__ . '/../themes',
|
|
|
+ 'img' => __DIR__ . '/../img',
|
|
|
+ 'uploads' => __DIR__ . '/../uploads',
|
|
|
+ 'cache' => __DIR__ . '/../uploads/cache',
|
|
|
+ ),
|
|
|
+ 'translate' => array(
|
|
|
+ 'adapter' => '\\Ppb\\Translate\\Adapter\\Composite',
|
|
|
+ 'translations' => array(
|
|
|
+ array(
|
|
|
+ 'locale' => 'en_US',
|
|
|
+ 'path' => __DIR__ . '/data/language/en_US',
|
|
|
+ 'img' => 'flags/en_US.png',
|
|
|
+ 'desc' => 'English',
|
|
|
+ 'sources' => array(
|
|
|
+ array(
|
|
|
+ 'adapter' => '\\Cube\\Translate\\Adapter\\Gettext',
|
|
|
+ 'extension' => 'mo',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'adapter' => '\\Cube\\Translate\\Adapter\\ArrayAdapter',
|
|
|
+ 'extension' => 'php',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+);
|