Is that the only function of the control? How many lines is controller code, 10? First I don't think that this is the problem for performance, but anyway you don't want controller that controls one/two simple actions (don't create entries without explicit need). You should listen click event in parent element's (which contains all products) controller, you should just have a way to determine which product (corresponding model instance) was clicked, it is easy to do.
↧