The problem is that in tutorial only one controller and one method are responsible for the representation of the page. The headers, footers, navigation menu are just statical templates so it's really easy just to render them. But if I have something like "Last 5 topics from the forum" i must make an sql-query, process the data, render the template. And I have to do these operations in every action.
|