} /* * Executa depois da acao */ $controller->afterAction(); /* * cria as variaveis para a view */ foreach ($controller->vars_for_view as $n => $v) { ${$n} = $v; } /* * instancia a classe sessao para a view */ $sessao = new Sessao(); $flash_mensagem = $sessao->readFlash(); /* * instancia o helper $html e $form */ $html = new Html(); $form = new Form(get_class($controller)); /* * DebugSQL */ $d = Debug::singleton(); $sqlDebug = $d->sql; /* * chama a view */ $view_file = $views_folder . $controlador . "/" . $acao . ".phtml"; if (!file_exists($view_file)) {