zend modules models

前端 未结 3 1708
深忆病人
深忆病人 2020-12-21 13:22

My application setup with 2 modules admin and default I test the controller which works fine on modules

but the models doesnt work

I created a model applica

3条回答
  •  天命终不由人
    2020-12-21 13:48

    Essentially, you need 2 lines in the application.ini file;

    resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
    resources.modules[] = ""
    

    Then, for each module, you need a module bootstrap file:

    File: myproject/application/modules/{modulename}/Bootstrap.php

    (Yes, it is an empty class.)

    Further details are at http://akrabat.com/zend-framework/bootstrapping-modules-in-zf-1-8/.

提交回复
热议问题