Themes and Pages

A page and the active theme work together to produce the rendered output for the page.

A page template defines sections which specify the outline for the page. The default page template defines three sections: TopBanner, MenuBar, MainContent, and Footer.

Each section will be rendered in order. The section will have a div wrapper with class and id defined by the page template. The inside of the section div will be rendered by calling the method print<sectionName> on the page object. In the default case, $page->printTopBanner(), $page->printMenuBar(), $page->printMainContent(), and $page->printFooter() will be called. If the page's class implementation does not provide a custom implementation for the print<sectionName> method, the base FlowBasis_UI_Page class will call print<sectionName> on the active theme object.

Most FlowBasis system-defined pages only implement printMainContent. This allows themes to fully customize the top banner, menu bar, and footer.