2009年5月1日星期五

[fw-mvc] Where to place action controller helpers?

I'm using ZF 1.8 and created a new site with Zend_Application. So far everything is looking good but I'm curious as to where to place my action controller helpers, particularly ones that are specific to this application (as in not library code).

application/controllers/helpers/
This seems like the most logical place, but I'm not sure if that will break anything with the front controller.

application/helpers
This should work with the resource autoloader, but "helpers" seems too vague and might confuse other developers into thinking they are view helpers.

library/My/Controller/Action/Helper/
This would work but I'd like to keep application-specific files in the application folder.

Where do you guys normally place your action helpers? Any tips would be appreciated. Thanks!

-Hector

没有评论: