/** * Renders view with feedback, header and footer */ public function renderAll($filename, $tplvars = false) { echo $this->render('_templates/header', $tplvars); echo $this->render($filename, $tplvars); echo $this->render('_templates/footer', $tplvars); // delete feedback messages (as they are not needed anymore and we want to avoid to show them twice) Session::clearFeedback(); }