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 6059901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:45:51+00:00 2026-05-23T08:45:51+00:00

I need to fire off an event, as early as possible in the dispatch

  • 0

I need to fire off an event, as early as possible in the dispatch process, when a customer visits a frontend controller. The request is to be analysed and will, potentially, be redirected to a different URL, justifying the “as early as possible” requirement.

What’s the earliest event a developer can subscribe to?

  • 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-23T08:45:52+00:00Added an answer on May 23, 2026 at 8:45 am

    The earliest event I’d rely on is

    controller_front_init_before 
    

    The Magento front controller object (distinct from the the “index.php front controller”) is the object that managers the routers, which in turn manages the action controller dispatch.

    There’s a few others (resource_get_tablename, core_collection_abstract_load_before, core_collection_abstract_load_after) that fire before, but they’re more of the side effect variety (Magento using it’s own systems to bootstrap itself) than anything you’d want to rely on.

    Finally, as should always be pointed out, if you do a little logging in app/Mage.php

    public static function dispatchEvent($name, array $data = array())
    {
        file_put_contents('/tmp/events.log',"$name \n",FILE_APPEND);
        Varien_Profiler::start('DISPATCH EVENT:'.$name);
        $result = self::app()->dispatchEvent($name, $data);
        #$result = self::registry('events')->dispatch($name, $data);
        Varien_Profiler::stop('DISPATCH EVENT:'.$name);
        return $result;
    }
    

    patterns begin to emerge.

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

Sidebar

Related Questions

I cannot get this function to fire off... I'm thinking I need a fresh
I need to fire a hash change event more than once per tick. My
I have a ListBox with databinding. I need to fire an event when a
I user sets an alarm it will need to send off an intent to
I have 2 places a user can click and both need to fire off
I need to fire of a bunch of threads and would like to bring
I have an application where I need to fire a notification on certain days
I am in need to create a cron triggers expression which should fire on
Onsubmit I want to fire fancybox popup I need only to show the fancybox
From the Activity, I am creating a Handler to fire off my AsyncTask every

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.