SproutCMS

This is the code documentation for the SproutCMS project

class Router

Router

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends Router {
    
    /**
    * Generates routed URI (i.e. controller/method/arg1/arg2/...) from given URI.
    **/
    public function routedUri (string $uri) {
        // Method code goes here
    }
    
    /**
    * Output information about origin cleanup, and then exit
    * This is turned on by the BootstrapConfig::ORIGIN_CLEANUP_DEBUG constant
    **/
    private function originCleanupDebug (string $old_proto, string $old_hostname, string $new_proto, string $new_hostname) {
        // Method code goes here
    }
    
    /**
    * Attempts to determine the current URI using CLI, GET, PATH_INFO, ORIG_PATH_INFO, or PHP_SELF.
    **/
    public function findUri () {
        // Method code goes here
    }
    
    /**
    * Redirect to alternate hostname and/or protocol if requred
    * 
    * The actual business rules for the desired protocol/hostname is defined in
    * the {@see BootstrapConfig} class which is located at config/_bootstrap_config.php
    **/
    public function originCleanup () {
        // Method code goes here
    }
    
    /**
    * Router setup routine; determines controller/method from URI.
    * Automatically called during Kohana setup process.
    **/
    public function setup () {
        // Method code goes here
    }
    
    /**
    * Get the routes tables.
    **/
    public function getRoutes () {
        // Method code goes here
    }
    
}
?>