예제 #1
0
파일: Yml.php 프로젝트: walterfrs/mladek
 /**
  * loadData
  *
  * Load and parse data from a yml file
  * 
  * @param  string  $path  Path to load yaml data from
  * @return array   $array Array of parsed yaml data
  */
 public function loadData($path)
 {
     $contents = $this->doLoad($path);
     $spyc = new Doctrine_Parser_Spyc();
     $array = $spyc->load($contents);
     return $array;
 }