I'm converting a non-MVC ExtJS 4 app to MVC ExtJS 4. I have an x-form-search-trigger defined in a form and the controller does not seem to recognize the onTriggerClick event. I did some researching and found this thread:

http://www.sencha.com/forum/showthread.php?180018-Trigger-field-triggerclick-is-not-exposed-by-API-so-controllers-cant-catch-it

Someone posted a solution by defining a custom trigger. However, I'm a little confused about where to put this code in the MVC folder structure. Does it belong in the same code as the view that defines the trigger? Is this even an appropriate example of how to handle onTriggerClick events?