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

Why Do we Need "Actions" in Module Development

Development and Programming

vincej's avatar
vincej
172 posts
12 years ago
vincej's avatar vincej

Hi - I have read various pieces on what actions are, however, no where have I seen a piece on why we need actions.

From the pieces I have read, it appears that actions are required simply because the available function does not do what we need it to do. For example, the form_declaration() function sends form data back to the index page, so, if you need it to go somewhere else, you need to intercept that and send it to the correct location. You accomplish that using an action. Or at least, this is how the tutorial below explains it:

http://ee-recipes.com/articles/details/adding-a-form

However, since I come from Codeigniter / PHP background I look at this, and think, this is bizaar. The form_declaration() is so broken as a function, that we have to “fix it” with another function …. no …. I must be wrong.

Yet - no where can I find a cogent explanation of WHY we need actions .. and while I’m at it, is there any sure fire way for a newb also to know when you need an action?

Please some one put me out of my misery and explain, the why and when of using actions .

Many thanks !!

       

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.