|
Yaf_Loader::registerLocalNamespaceRegister local class prefix Description
public void Yaf_Loader::registerLocalNamespace(mixed
$prefix)Register local class prefix name, Yaf_Loader search classes in two library directories, the one is configured via application.library.directory(in application.ini) which is called local library directory; the other is configured via yaf.library (in php.ini) which is called global library directory, since it can be shared by many applications in the same server. When an autoloading is triggered, Yaf_Loader will determine which library directory should be searched in by examining the prefix name of the missed classname. If the prefix name is registered as a localnamespack then look for it in local library directory, otherwise look for it in global library directory.
Parameters
Return Valuesbool ExamplesExample #1 Yaf_Loader::registerLocalNamespaceexample |