<?php 
require_once "../autoload.php";
use SON\Pessoa\PessoaType\PessoaJuridica;
use SON\Pessoa\PessoaType\PessoaFisica;
use SON\DB\Connection;
use SON\DB\EntityManager;
use SON\DB\Fixture;
$con = new Connection('localhost', 'ceducation', 'root', '');
$db = $con->connect();
$fixture = new Fixture($db);
$pessoas = $fixture->listar();
?>
<!DOCTYPE html>
<html lang="en">
    <?php 
require_once 'header.php';
?>
    <body>


        <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Code Education PHP OO</a>
<?php 
require_once "../autoload.php";
require "../CriaDb.php";
use SON\Pessoa\PessoaType\PessoaJuridica;
use SON\Pessoa\PessoaType\PessoaFisica;
use SON\DB\Connection;
use SON\DB\EntityManager;
use SON\DB\Fixture;
CriaDb::criarDb();
$con = new Connection('localhost', 'ceducation', 'root', '');
$db = $con->connect();
$fixture = new Fixture($db);
$fixture->createTables();
$fixture->insert();
echo "Dados Inseridos!!";