Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2016 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6e3ce5ef3c0a7a5f88def98b31e935d9 to your computer and use it in GitHub Desktop.
Save anonymous/6e3ce5ef3c0a7a5f88def98b31e935d9 to your computer and use it in GitHub Desktop.
Meu site
// index.php
<?php
require_once 'classes/admin/config.php';
// Mostrando o topo do site
$sitetopo = new SiteTopo();
// Passando o title do site
$sitetopo->setTitle('Home');
$sitetopo->tituloSite();
$sitetopo->menuSite();
// Classe Principal
$siteprincipal = new sitePrincipal();
?>
// SiteTopo.php
<?php
require_once 'config.php';
$Conexao = new Conexao();
$Conexao->Conectar();
class SiteTopo {}
//config.php
<?php
spl_autoload_register(function ($classe)
{
return 'classes/admin' .$classe.'.php';
})
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment