daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 29th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   require_once 'route.php';
  3.   require_once 'functions.php';
  4.  
  5. $route = new Route();
  6.  
  7. $route->add('/', function(){
  8.   $site_url = site_url();
  9.   require_once 'pages/home.php';
  10. });
  11.  
  12. $route->add('/product', function(){
  13.   require_once 'pages/product.php';
  14. });
  15.  
  16. $route->add('/contact', function(){
  17.   require_once 'pages/contact.php';
  18. });
  19.  
  20. $route->add('/admin', function(){
  21.   $site_url = site_url();
  22.   require_once 'pages/admin.php';
  23. });
  24.  
  25. $route->add('/login', function(){
  26.   require_once 'pages/test.php';
  27. });
  28.  
  29. $route->submit();
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top