예제 #1
0
파일: index.php 프로젝트: infrajs/yml
<?php

namespace infrajs\yml;

use infrajs\catalog\Catalog;
use infrajs\config\Config;
if (!is_file('vendor/autoload.php')) {
    chdir('../../../');
    require_once 'vendor/autoload.php';
}
$html = Catalog::cache('ymlshow', function () {
    return Yml::init();
});
header("Content-type: text/xml");
echo $html;