<?php require_once '../../../vendor/autoload.php'; require_once '../../../index.php'; use View\Helper\HelperSeries; use View\Helper\HelperEditoras; use View\Helper\HelperLivros; use Model\DAO\LivrosDao; $id = filter_input(INPUT_GET, "id"); $serie = new HelperSeries(); $selectSerie = $serie->select(); $editora = new HelperEditoras(); $selectEditora = $editora->select(); $livro = new HelperLivros(); $tabelaLivro = $livro->tabela(); $livroEdit = (new LivrosDao())->findOne(['_id' => new \MongoId($id)]); $tags = $livro->tags($livroEdit['tags']); ?> <HTML> <HEAD> <link href="../webroot/css/bootstrap.min.css" rel="stylesheet"> <link href="../webroot/css/jquery.tagit.css" rel="stylesheet" type="text/css"> <link href="../webroot/css/tagit.ui-zendesk.css" rel="stylesheet" type="text/css"> <link href="../webroot/css/styleMongo.css" rel="stylesheet" type="text/css"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CRUD Mongodb</title>
<?php session_start(); require_once '../../../vendor/autoload.php'; require_once '../../../index.php'; use View\Helper\HelperSeries; use View\Helper\HelperEditoras; use View\Helper\HelperLivros; use View\Helper\HelperAdmin; $serie = new HelperSeries(); $selectSerie = $serie->select(); $editora = new HelperEditoras(); $selectEditora = $editora->select(); $livro = new HelperLivros(); $tabelaLivro = $livro->tabela(); ?> <HTML> <HEAD> <link href="../webroot/css/jquery.tagit.css" rel="stylesheet" type="text/css"> <link href="../webroot/css/tagit.ui-zendesk.css" rel="stylesheet" type="text/css"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CRUD Mongodb</title> </head> <body> <div class="row">