Пример #1
0
         $controle = "Admin" . ControleSessao::$control;
     }
     if (class_exists($controle)) {
         $action = 'index';
         if (ControleSessao::$action) {
             if (method_exists($controle, ControleSessao::$action)) {
                 $action = ControleSessao::$action;
             }
         }
         $componentePrincipal = new $controle(ControleSessao::$params);
         $view = Control::carregarInterface($interface);
         $conteudoComponente = $componentePrincipal->{$action}();
         $params = ControleSessao::$params;
         Componente::inclusaoDependencias($params, $view, $componentePrincipal);
         Componente::inclusaoComponentes($params, $view);
         Componente::inclusaoComponentes($params, $conteudoComponente, $view);
         $view->setVariable("aplicacao", $conteudoComponente->get());
         $conteudo = $conteudoComponente->get();
         $view->touchBlock("Logout");
         verificarControleMenu($controle, $params, $view);
         $view->setVariable("usuario_logado", my_ucwords(mb_strtolower($_SESSION["user_nome"], 'UTF-8')));
         $view->setVariable("centro_custo", my_ucwords(mb_strtolower($_SESSION["centro_custo"], 'UTF-8')));
         $view->setVariable("cargo", my_ucwords(mb_strtolower($_SESSION["cargo"], 'UTF-8')));
         $view->setVariable("data_ultimo_acesso", formatDataWEBComHora($_SESSION["data_ultimo_acesso"], 'UTF-8'));
         $view->setVariable("url", URL);
         $view->setVariable('controle', ControleSessao::$control);
         $view->setVariable("aplicacao", $conteudo);
     } else {
         header("Location: " . URL . "Permissao_404");
     }
 } else {