Example #1
0
 public function __construct()
 {
     parent::__construct();
     require_once "model/pacoteDAO.php";
     require_once "model/usuarioDAO.php";
     require_once "model/faleconoscoDAO.php";
     require_once "model/estadoDAO.php";
     require_once "model/vooDAO.php";
     // DAO
     $this->pDAO = new PacoteDAO();
     $this->uDAO = new UsuarioDAO();
     $this->fcDAO = new FaleconoscoDAO();
     // id do usuario no DB
     $_SESSION["cd"];
     $usu = $this->uDAO->getUsuarioById($_SESSION["cd"]);
     $this->views->assign("login", $usu->getNome());
 }