View Single Post
  #1 (permalink)  
Old 04-16-2008, 07:47 AM
sebastian sebastian is offline
Junior Member
 
Join Date: Apr 2008
Location: Germany, Hamburg
Posts: 11
Default Custom Action Helpers - where to put them?

Hi,

as I said somewhere else before : I'm pretty new to the Zend Framework. So, here is another question I have.

Where do I have to put an action helper considering Zend Framework best pratices? At default there is only a helpers path beneath the views path. I guess, that's the place for view helpers only, is it?

What else do I have to beware of, so the helper gets loaded successfullly using $this->_helper->getHelper('MyBeautifulHelper') within the action controller. Any pitfall ?

[edit]
A small addition: I'm thinking of an action helper checking in an action controller, whether a user is logged in and may perform some action or not.
[/edit]

Thanks in advance for your help.

Sebastian

Last edited by sebastian : 04-16-2008 at 07:49 AM.
Reply With Quote