-----
Jeroen Keppens
+32 (0)475/62.42.64
On 08 Dec 2010, at 22:14, "K.L." <coviex@gmail.com> wrote:
> On Wed, Dec 8, 2010 at 7:20 PM, Matthew Weier O'Phinney
> <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.
>
没有评论:
发表评论