Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 09542ae2a73a111b0d8f15faba81ab6d > files > 16

ezcomponents-Configuration-1.3.5-3.mga4.noarch.rpm

<?php
require_once 'tutorial_autoload.php';

$reader = new ezcConfigurationIniReader();
$reader->init( dirname( __FILE__ ), 'settings' );

// validate the settings file, and loop over all the validation errors and
// warnings
$result = $reader->validate();
foreach ( $result->getResultList() as $resultItem )
{
    print $resultItem->file . ":" . $resultItem->line . ":" . $resultItem->column. ":";
    print " " . $resultItem->details . "\n";
}

// load the settings into an ezcConfiguration object
$cfg = $reader->load();
?>