Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2007-02-15 04:42
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");

?>