When using the CakeBaked add view and controller I want to put a selection box into the form using data from one of the models. Since this view does not access any data before the add view is rendered, I need to figure out where to do the database access. If i use beforeRender in the controller then edit/view will also have to get this data which is not needed.
Is there a way in beforeRender to know what view is about to be rendered? Or is there another way to do this.