My structure has component.php in the root of my component. I am using the http://www.notwebdesign.com/joomla-component-creator/j15/index.php
I feel the need to have multiple controllers to have cleaner code as I have around 12 tasks to be run. I am using multiple models and need to have multiple controllers.
Anyone who can point me in the right direction? Sample code highly appreciated.
You need to make a folder in your component’s main directory (e.g. components/com_mycom/controllers/…)
Then the main file of my component (it should be called “mycom.php” using the example from above) has code that looks like this:
Then for your controllers in your controllers directory your code would be as normal e.g.
A url that would call this would look like so: