Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

coding style - where to put utility functions
 
ckosny
Guru
 
Total Posts:  349
Joined:  2009-02-28
Luxembourg
 

Hi there

I have some custom utility functions and classes that I use about everywhere (e.g. for creating microformats or formatting stuff or logging facilities). What is the correct way to implement stuff like this in Magento?
I have several modules in app/code/local/mycompany/<module> but as these utility functions are not module specific I don’t think that they belong into one of these module folders.

I am wondering whether I should create a new module that has only lots of helpers that are then used by the real modules but I’d rather have some other opinions on this.

Thanks for any tips.

Claudia

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top