I need to display a yaml file as an array but i but I can't display it.
I have create a service, and my controller call this service.
In my service i try to call my yaml like this :
$value = Yaml::parseFile('public\assets\organizations.yaml');
return $value;
But that return me that error :
File "public\assets\organizations.yaml" does not exist.
dump(getcwd());
and see what the path is, then match the path to the file using that:getcwd().'/rest/of/the/path.yaml'
.