index.php 326 B

12345678910
  1. <?php
  2. require_once("../config.php");
  3. function cepha_autoloader($classname) {
  4. require_once(ROOT_PATH . "lib/" . $classname . ".php");
  5. }
  6. spl_autoload_register("cepha_autoloader");
  7. $pageFactory = PageFactory::getInstance();
  8. $pageData = isset($_GET['p']) ? $_GET['p'] : "/index";
  9. echo $pageFactory->create($pageData)->render();