Hi, i have a dropdown list department which onchange (ajax) will list subjects belonging to the same. These 2 dropdown lists are common for many controllers. so instead of putting same actions in each controller how would reuse the code. Is there any guide on how to achieve this.
main.php is the single layout used for the whole project, and out of around 10 controllers nearly 5 controllers use tht select dropdwon list, so is that a appropriate way to implement tht way or do i need to create a component, extension or a widget. ?