public function page() { // Obtain the router class $router = new \GHCP\Router(); // Fire the router class $router->route(); }
public function deployByKey() { // Attempt to get a key from query string if (isset($_GET['key']) && is_numeric((int) $_GET['key'])) { // Store the key $key = $_GET['key']; } else { // Display not allowed, return false to prevent view echo "<h2>Not Allowed.</h2>"; return false; } // Load this application's data $this->load($key); // Deploy this application $this->deploy(); // Reroute to list page $router = new \GHCP\Router(); $router->route('application-list'); // Return false to prevent this view return FALSE; }