-
Notifications
You must be signed in to change notification settings - Fork 4
Configuration
Pavel Linkesch edited this page Oct 19, 2015
·
6 revisions
Marvin's configuration is located in /app/config.php file. After fresh installation it looks like this:
<?php
$app["debug"] = true;
$config["website"]["name"] = "Marvin";
$config["website"]["description"] = "Marvin is a micro CMS for PHP 5.3";
$config["website"]["url"] = "http://marvin.linkesch.com";Here is a list of configuration options that could be customized:
<?php
$app['debug'] = true; // Silex debug option - http://silex.sensiolabs.org/doc/usage.html
$config['env'] = isset($env) ? $env : 'prod'; // prod, test
$config['website']['name'] = 'Marvin';
$config['website']['description'] = 'Marvin is a micro CMS for PHP 5.3';
$config['website']['url'] = 'http://marvin.linkesch.com';
$config['website']['email'] = 'your@email.com';
$config['base_dir'] = __DIR__.'/../../..'; // Relative to /vendor/marvin/marvin
$config['app_dir'] = $config['base_dir'] .'/app';
$config['data_dir'] = $config['base_dir'] .'/data';
$config['themes_dir'] = $config['base_dir'] .'/app/themes';
$config['web_dir'] = $config['base_dir'] .'/web';
$config['upload_dir'] = $config['web_dir'] .'/uploads';
$config['public_upload_dir'] = '/uploads';
$config['theme'] = 'default';
$config['db']['path'] = $config['data_dir'] . ($config['env'] == 'test' ? '/test.db' : '/app.db');
$config['db']['name'] = 'marvin';
$config['plugins'] = array('pages', 'users'); // Plugin initialization