<matthew@zend.com> wrote:
> Now, the other configuration setting:
>
> appnamespace = "Application"
>
> is telling Zend_Application that classes under the default module are
> using the prefix "Application". Looking again at our structure, we'd see
> the following mappings::
>
> application/
> Bootstrap.php -> Application_Bootstrap
> forms/
> Login.php -> Application_Form_Login
> models/
> User.php -> Application_Model_User
> views/
> helpers/
> LoginForm.php -> Application_View_Helper_LoginForm
I don't know why but Zend_Tool creates "Bootstrap.php" having class
"Bootstrap" not "Application_Bootstrap".
Moreover renaming it to "Application_Bootstrap" raises exception.
Same thing for controllers.
But for models it is quite the opposite. Models work with
"Application" prefix and don't w/o it.
> If you change the setting to read:
>
> appnamespace = "Zoo"
>
> you need to update all classes under application/ to use the "Zoo"
> prefix.
Thanks.
没有评论:
发表评论