I instantiate Zend_Application with this part of config:
autoloaderNamespaces[] = "Application"
autoloaderNamespaces[] = "Other"
appnamespace = "Application"
Question is why should I write "autoloaderNamespaces[] =
"Application"" if then I have this "appnamespace = "Application""?
Looks like overlapping.
"appnamespace = "Application"" helps load all classes with prefix
"Application_Aplication" which are in Zend sibling directory
"Application".
But it doesn't help classes which are right there in "Application"
directory, say, with "Application_Form" prefix.
Why is it so? Or I miss something?
Tnx
没有评论:
发表评论