smarty->assign("cadastro",1); unset($_SESSION['cadastro']); } $this->smarty->assign("msg",$_REQUEST['msg']); $this->smarty->assign("onde_estou","home"); $this->smarty->assign("conteudo","index.tpl"); $this->smarty->display("base.tpl"); } } $pagina = new pagina(); switch ($_REQUEST['acao']) { default: case 'exibir_principal': $pagina->exibir_principal(); break; } ?>