Created
April 23, 2016 11:25
-
-
Save anonymous/6e3ce5ef3c0a7a5f88def98b31e935d9 to your computer and use it in GitHub Desktop.
Meu site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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