作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我注意到同样的情况发生在:
$moduleLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH));
$moduleLoader->addResourceType('acl','acls/','Acl');
$resourceLoader = new Zend_Loader_Autoloader_Resource(array(
'basePath' => APPLICATION_PATH,
'namespace' => '',
));
$resourceLoader->addResourceType('acl', 'acls', 'Acl')
最佳答案
这可能会让你开始。我仍在寻找更好的差异。
Zend_Application_Module_Autoloader provides the functionality needed to map the various resources under a module to the appropriate directories, and provides a standard naming mechanism as well.
Zend_Loader_Autoloader_Resource is intended to simplify loading resources that do not have 1:1 class prefix/filesystem mappings. The primary use case is for use with modular applications, to allow autoloading of module-specific classes.
关于zend-framework - Zend_Application_Module_Autoloader 和 Zend_Loader_Autoloader_Resource 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2152392/
我注意到同样的情况发生在: $moduleLoader = new Zend_Application_Module_Autoloader(array( 'namespace' => '
我是一名优秀的程序员,十分优秀!