(Yaf >=2.1.4)
Yaf_Loader::getLibraryPath — Retrieve the library path
Retrieve the library directory.
is_globalWhether to retrieve the global library directory instead of the local one.
The library directory as a string, or an empty string when the global library directory is requested but not set.
Example #1 Yaf_Loader::getLibraryPath() example
<?php
$loader = Yaf_Loader::getInstance(
"/var/www/shop/application/library",
"/usr/local/share/yaf/library"
);
/* the local library directory */
echo $loader->getLibraryPath(), PHP_EOL;
/* the global library directory */
echo $loader->getLibraryPath(true), PHP_EOL;
?>The above example will output something similar to:
/var/www/shop/application/library /usr/local/share/yaf/library