My web pages consist of two parts, albeit at the top and bottom (except for the header and footer - they are consistent between the pages). What is the best practice for dynamically creating these parts based on the action?
One of the approaches that I came up with is to have an idea of the upper and partial for the bottom; in the output call the layout for the top and partial for the bottom. The partial file name is dynamically replaced depending on the action.
Not sure if this is the best way to do this.
source
share