System:Router
From Aspen Documentation
The Router class handles all URL processing tasks for applications.
| Function | Description |
|---|---|
| getSelectedModule | Returns the current module name. |
| getSelectedMethod | Returns the current method (page) name. |
| getParentModule | Returns the parent module name, if set. |
| getFullUrl | Returns a full URL path for the current page, query string and all. |
| getApplicationUrl | Returns the url to entire framework installation root. |
| getDomainUrl | Returns the domain only. |
| getPath | Attempts to return the post-domain name path to our application. |
| getInterfaceUrl | Returns the interface application url, which is simply appending the app url. |
| getStaticContentUrl | Returns the static content path (interface url unless different in config). |
| getModulePath | Returns the server path to our module. |
| getModuleUrl | Returns the web address to our module folder. |
| encodeForRewriteUrl | Encodes a string for use in the url. Geared towards use with mod_rewrite. |
| decodeForRewriteUrl | Decodes a string encoded by encodeForRewriteUrl. |
| here | Answers whether or not the user is in a specific location. Accepts a module and method name and returns true if the user is at that location or it's parent. |
| returnToReferrer | Returns the user to the referring page when called. |
| redirect | Redirects user to a web address. Accepts the same parameters as createUrl in the Template class. |