$view = new ViewModel();
// this is not needed since it matches "module/controller/action"
$view->setTemplate('content/article/view');
$articleView = new ViewModel(array('article' => $article));
$articleView->setTemplate('content/article');
$primarySidebarView = new ViewModel();
$primarySidebarView->setTemplate('content/main-sidebar');
$secondarySidebarView = new ViewModel();
$secondarySidebarView->setTemplate('content/secondary-sidebar');
$sidebarBlockView = new ViewModel();
$sidebarBlockView->setTemplate('content/block');
$secondarySidebarView->addChild($sidebarBlockView, 'block');
$view->addChild($articleView, 'article')
->addChild($primarySidebarView, 'sidebar_primary')
->addChild($secondarySidebarView, 'sidebar_secondary');
return $view;
Group items matching
in title, tags, annotations or urlsite news - 0 views
1More
Launching Web Development Company - 1 views
1More
User Centered Design - The driving force behind your website - 0 views
MediaStriker - Yubnub - 0 views
Human Cognition and AI - 0 views
‹ Previous
21 - 33 of 33
Showing 20▼ items per page