ErrorController: değerinde bir varsayılan modül taşımak için

0 Cevap php

default modülü önce ana uygulama olarak kullanılan ne olduğu, benim uygulama için modül tabanlı mimari deniyorum.

modules/
     default/
     firstmodule
     secondmodule
     thirdmodule

Her modül models, views, controllers vardır. Bu, örnek olarak, varsayılan bir modüldür.

     default/
        models
        views
        controllers
           IndexController

Benim sorunum ErrorController bu zend application/controllers/ErrorController.php varsayılan olarak oluşturur ile. Ben default modülün kontrolörleri klasöre taşımak istiyorum, ama ErrorController ve tüm varlık, herhangi bir özel tedavi ihtiyacı acaba?

I modules/default/controllers/ErrorController.php onu hareket etmelidir,

ya da ben application/controllers/ErrorController.php böyle bırakmanız gerekir

Edit: If I move it to default/controllers, then each of the other modules would not have an ErrorController. Does that mean that I'd have to define one for each module since the application itself doesn't have an ErrorController? and is it worth it to define one for each module?

0 Cevap