I want to create some function for rendering images from within Joomla v1.5.23. That function should be visible through all joomla application.
Where I have to put that function? Should I create plug in, modul or something else?
Best regards
I want to create some function for rendering images from within Joomla v1.5.23. That function should be visible through all joomla application.
Where I have to put that function? Should I create plug in, modul or something else?
Best regards
Version info would be helpful, but I believe your answer is to create a plugin. Components are very broad "mini applications" installed and executed within Joomla. Modules are typically pieces of code that display information from a component, or an outside source. Plugins have various places within Joomla, depending on what they do - like authentication, or admin, etc. You'll have to define what role the plugin will play to determine where it fits into that hierarchy. Once done though, the plugin will be loaded, and you'll be able to access it's functions from within Joomla.
This link will show you how to begin by writing a content plugin. Note the events that are available. This isn't too difficult to do, so don't overcomplicate it, and you should be fine. An example of a System Plugin (which sounds like what you're looking for) can be seen at http://docs.joomla.org/Plugin/Events/System.