Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6596241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:02:57+00:00 2026-05-25T18:02:57+00:00

Could someone please tell me how I can declare multiple helpers within the same

  • 0

Could someone please tell me how I can declare multiple helpers within the same config file for the same module?

I’ve been using helper utility files for awhile now, but as my utility method is becoming increasingly long, with many functions, I’d like to split it up into seperate helper utility classes based on the functionality. So I’d have a class called Categoryhelper and one called Attributehelper. Obviously this step I can do, but I’m not sure how to declare these in the config.xml.

I’ve tried messing around with the config, doing trial and error but cant seem to get anything to work.

Here’s what I originally had, using the default helper:

(note – my custom module name is called ‘Helper’

<global>
...
<helpers>
    <helper>
        <class>GPMClient_Helper_Helper</class>
        </helper>
</helpers>
...

and here’s what I’ve tried:

<helpers>
<helper>
            <class>GPMClient_Helper_Helper/Categoryhelper</class>
    </helper>
    <helper>
            <class>GPMClient_Helper_Helper/Attributehelper</class>
    </helper>

and:

<helpers>
<helper>
            <class>GPMClient_Helper_Helper/Categoryhelper</class>
        <class>GPMClient_Helper_Helper/Attributehelper</class>
    </helper>

Should the helper classes go into their own xml fragment or should both be grouped together?

If anyone could please post a sample config with multiple helper classes declared, I’d be most grateful.

Thanks,
Ian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:02:58+00:00Added an answer on May 25, 2026 at 6:02 pm

    Seems like you got wrong how it works. When you add next lines to your GPMClient_Helper module config.xml

    <helpers>
        <helper>
            <class>GPMClient_Helper_Helper</class>
        </helper>
    </helpers>
    

    you define class prefix for all your helpers. So, now in your GPMClient/Helper/Helper directory you should create file Data.php with GPMClient_Helper_Helper_Datacode inside and any number of classes named GPMClient_Helper_Helper_*.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone please tell me which objects types can be tested using Regular Expressions
Could someone please tell me how I can make the icon for my app
Could someone please tell me how I can use find_by_attribute with a variable which
Could someone please be so kind and tell me how I can hide the
Could someone please tell me how can I change the default css of a
Could someone please tell us on how to print correctly the handling thread in
I've recently written this with help from SO. Now could someone please tell me
Could someone please tell me how to display the path of the current working
I'm pretty new to Wicket. Could someone please tell me why speech marks and
Could someone please tell me what is exactly wrong with the way my case

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.