Yaf_Loader::getNamespacePath
(Yaf >=3.2.0)
Yaf_Loader::getNamespacePath — Retieve path of a registered namespace
説明
retrieve path of a registered namespace
パラメータ
namespace
-
a string of namespace.
例
例1 Yaf_Loader::registerNamespace()example
<?php
$loader = Yaf_Loader::getInstance("/var/application/lib");
$loader->registerNamespace("\Vendor\PHP", "/var/lib/php");
$loader->getNamespacePath("\Vendor\PHP"); // '/var/lib/php'
$loader->getNamespacePath("\Vendor\JSP"); // '/var/application/lib'
?>
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google