public function __construct() { parent::__construct(); try { $this->fachada = new Fachada(); $this->usuarioLogado = $this->getUsuarioLogado(); } catch (\Exception $ex) { Facil::despacharErro(500, "Aplicação está indisponível no momento"); } }
public function __construct() { parent::__construct(); try { $usuarioLogado = $this->isUsuarioLogado(); if ($usuarioLogado) { Facil::redirecionar(self::PAGINA_INICIAL); } $this->fachada = new Fachada(); } catch (\Exception $ex) { Facil::despacharErro(500, "Aplicação está indisponível no momento"); } }
public function __construct() { parent::__construct(); try { $this->idmenu = Menu::PRODUTOS; $this->usuarioLogado = $this->getUsuarioLogado(); $this->fachada = new Fachada(); $this->dataTables = new DataTables(); $this->cadastro = false; $this->setarBotoes(); $menu = new Menu(); $menu->id = $this->idmenu; $this->menu = $this->fachada->buscarMenu($menu); Facil::setar("modulo", $this->menu); } catch (\Exception $ex) { Facil::despacharErro(500, "Aplicação está indisponível no momento"); } }