We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Internal processing order and extension hooks

Development and Programming

Paul @ Westhouse IT's avatar
Paul @ Westhouse IT
89 posts
about 14 years ago
Paul @ Westhouse IT's avatar Paul @ Westhouse IT

I’m looking at the possibility of loading an extension before any EE processing takes place, or as early as possible. Is there any information on the order of hooks or anything else helpful?

       
Paul @ Westhouse IT's avatar
Paul @ Westhouse IT
89 posts
about 14 years ago
Paul @ Westhouse IT's avatar Paul @ Westhouse IT

Without trawling through all the code it looks like sessions_start is the earliest hook, is that right?

       
Bhashkar Yadav's avatar
Bhashkar Yadav
727 posts
about 14 years ago
Bhashkar Yadav's avatar Bhashkar Yadav

Hi Paul, yes, sessions_starts hook is being called every time a page loads.

       
Paul @ Westhouse IT's avatar
Paul @ Westhouse IT
89 posts
about 14 years ago
Paul @ Westhouse IT's avatar Paul @ Westhouse IT

Thanks. Do you know if there are any hooks that are called earlier?

       
Bhashkar Yadav's avatar
Bhashkar Yadav
727 posts
about 14 years ago
Bhashkar Yadav's avatar Bhashkar Yadav

Hi Paul,

there is another solution by loading “pre_system” hook. please take a reference from CodeIgnitor http://ellislab.com/codeigniter/user-guide/general/hooks.html.

in EE, you can define hooks (hook array) into the file system/expressionengine/config/hooks.php in the same way as CodeIgniter hooks are defined.

hope this would help you.

       
Paul @ Westhouse IT's avatar
Paul @ Westhouse IT
89 posts
about 14 years ago
Paul @ Westhouse IT's avatar Paul @ Westhouse IT

Thanks! I’ll look into that.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.