Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //PISST EUCH IHR DRECKS PASTEBIN LEUDE UND KLAUT NICHT MEINE CODES
- namespace Daily\System;
- class Routing {
- public function __construct() {
- self::process();
- if(isset($this->get[1])) {
- echo "test";
- }
- }
- private static function process() {
- if(isset($_GET['site'])) { $this->get = $_GET['site']; $this->get = trim($this->get, '/'); $this->get = explode('/', $this->get);}
- if(empty($_GET['site'])) { if(file_exists($path = 'application/controllers/IndexController.php')) { $index = new \Daily\Controllers\IndexController; $index->Main(); return FALSE;}}
- }
- private $get array;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement