I'm trying to figure out how to run a function/script as soon as an item is saved in joomla 2.5. Joomla's MVC structure is still rather complicated to me so I'm pulling my hair here trying to find out where this save event is triggered. Also I want to keep the code neat so I'm asking here for help.
Basically I want to run my own function (let's say emailUser() ) as soon as an item is saved in joomla. Currently there is no way for me to do "other stuff" when the save event is triggered.
I'm using a custom component generated with the component creator here: http://www.notwebdesign.com/joomla-component-creator/
I heard that plugins are the solution, but I can't find any documentation on the save events and how to use a plugin to do this. Joomla's help forums aren't helping either. So basically I need a push in the right direction.
EDIT: I've seem to found the toolbar which creates the save button, but that means that it's saved through the internal workings of joomla. It's in the view.html.php file. Any way of tapping into that with a custom function?