Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Miku Magic</h1>
- <?php
- $configuration = array(
- "controllerPath" => "../application/controllers/"
- );
- function controller($options) {
- global $configuration;
- if(!is_array($options))
- die("controller(): incorrect arguments");
- include($configuration["controllerPath"] . $options["controller"] . ".php");
- $controller = new Controller;
- $controller->run(array(
- "action" => $options["action"]
- ));
- }
- controller(array(
- "controller" => $_GET["controller"],
- "action" => $_GET["action"]
- ));
- ?>
Add Comment
Please, Sign In to add comment