PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of djomla   YMLizer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: YMLizer
Extract data definitions from an YAML file
Author: By
Last change:
Date: 17 years ago
Size: 420 bytes
 

Contents

Class file image Download
<?php

/* Remeber we use spyc for loading data from yml */
include ("spyc.php");

include (
"ymlizer.class.php");

$array = Spyc::YAMLLoad('test.yml');

function
print_pre($fil)
{
    echo
"<pre>";
   
print_r($fil);
    echo
"</pre>";
}


$test = new YMLizer($array);

$a = $test->getSettings();

print_pre($a);

echo
$a->offsetGET("Index")->offsetGET("njegov")->offsetGET("njegov2")->offsetGET("0");

?>