Last modified 4 years ago
A base class for page objects, which can render themselves using
class DemoPage extends RoxPageView
{
... // reimplementing some of the protected methods
}
class DemoController
{
public function index()
{
$page = new MyPage();
$page->render();
}
}
By default, a page with no special content, but in Rox Layout, will be shown.
Customization of the page happens
- by overwriting methods in subclasses.
- by setting attributes from outside.
Todo: Rethink Identifiers!!!
Evtl we have to rethink names like
- RoxPageView - better could be RoxDefaultPage? or RoxBasePage?
- $page->render() - would $page->show() be better?
- topmenu() - what about showTopmenu() instead?
- column_col3() - what about showMiddleContent() ?
- column_col1() -> showLeftSidebar()
- leftSidebar() -> showLeftSidebarContent()
(this one is called by column_col1)


