Hey all,

I'm using the MVC application structure. I've got a controller with quite a few functions in it. They all access a lot of the same components in my application but I think I've written it very inefficiently.

For example, I have several buttons that affect the grid in my application. In each button function I have to do something like
Code:
var panel = button.up(panel);
var grid = panel.down(grid);
Instead of having those two lines in each button function, is there somewhere in the controller where I can define panel and grid (and the other components in my application) so they can be accessed by all my controller functions?

thank you!