Open Source Content Management Framework

PHP midgard_config method list_files

  1. Example

List all available configuration files.

array list_files([bool user]);

midgard_config method read_file takes one parameter.

  • user configuration switch

user switch has the same meaning as in read_file method.

Returns array with all available configurations from user's home or system directory.

Example

<?php

$config = new midgard_config();
$list = $config->list_files();

if(!empty($list)) 
{
    echo "Available system configurations: \n"
    foreach($list as $name)
    { 
        echo "\t".$name."\n";
    }
}
?>
Tagged
ragnaroek
vinland
Designed by Nemein, hosted by Anykey