template = 'pages/subprojects.tpl'; } /* Display the index page. */ public function index() { $subprojects = SubprojectsModel::getAllSubprojects(); global $Smarty; return $this->renderPage( array( 'title' => $Smarty->getConfigVars('subprojectsTitle'), 'content_title' => $Smarty->getConfigVars('subprojectsContentTitle'), 'subprojects' => $subprojects, ), $this->template ); } }