webCOMAND

Package Configuration

Default configuration files are found in the config folder within a package.  Default configuration files are for reference and should not be modified.  To customize a package configuration, update the main config.php file located in the folder where webCOMAND is installed.

Example Package Configuration

File: <webcomand>/packages/io_comand_publication/config/publication.php

<?php
/**
 * Defines basic parameters for publishing in the COMAND API.
 * These are supplemented by settings defined in the
 * publications themselves.
 *
 * To override these defaults, create a modified copy at:
 * <webcomand>/config/io_comand_publication/publication.php
 */
$config = [
    // Fully-qualified base path to write all published files to.
    // Publications define their own subpaths based on this.
    'publish_path' => COMAND_HOME.'/files/publications'
];

To customize the default configuration, find or create a corresponding section in the main config.php file in the folder where webCOMAND was installed.

Example Custom Configuration

File: <webcomand>/config.php:

<?php
/**
 * Override default package configuration settings.
 */
$config = [
    'io_comand_publication' => [
        'publication' => [
            // Fully-qualified base path to write all published files to.
            // Publications define their own subpaths based on this.
            'publish_path' => COMAND_HOME.'/files/publications'
        ]
    ]
];

For information about common configuration files, see Configuration in the Admin Guide.