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

  • Home
  • SEARCH
  • 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 771745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:42:05+00:00 2026-05-14T18:42:05+00:00

I am looking to create some new functionality to Magento. I am going to

  • 0

I am looking to create some new functionality to Magento. I am going to be looking to the url and grabbing a parameter. The issue is, this can be on any page. So I can’t just extend a Catalog or Checkout Module.

I thought about extending the session classes but I wasn’t sure it really fit. Basically I want to grab a parameter from the url and from there add some functionality if it is set or not. I don’t think a class will get auto loaded unless it is instantiated somewhere else with a getModel method, am I wrong?

How can you add a module that doesn’t have a url path for controller and what not, but doesn’t fit extending one of the core modules?

I looked for a generic event but didn’t really see one like before_page_load or something

  • 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-14T18:42:06+00:00Added an answer on May 14, 2026 at 6:42 pm

    Take a look at the event controller_action_predispatch in app/code/core/Mage/Core/Controller/Varien/Action.php. This event should get called on each dispatch and allow you to grab whatever parameters you need.

    The event passes the controller as data, so you can do this:

    function yourEvent( $event ) {
        $controller = $event->getController();
        // your processing here
    }
    

    Let me know if that doesn’t fit the bill. Hope that helps!

    Thanks,
    Joe

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

Sidebar

Related Questions

We have some search functionality that can return tens of thousands of results from
I’m looking for some advice. I recently wrapped up a project where I inherited
I have some C# code which is using CSharpCodeProvider.CompileAssemblyFromSource to create an assembly in
First one: how can I create a Thread that doesn't start right away.If I
I'm looking for ideas on how to restrict access to and log calls for
I looked through the existing questions of this kind but didn't find what I
As some background I prefer the flexibility and benefits that ASP.NET MVC gives me,
I'm trying to determine the best way of deploying new versions of an established
I am building a dynamic reporting feature for a client. They want to create

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.