thomshouse/escher — Issue #1: Eliminate $router->getPath(), replace with component functions.
Author: thomshouse
Created: 2011-10-24 22:40:47+00:00
State: open
Labels: Usability Fix

$router->getPath() returns an array consisting of the current and parent paths... This is awkward.

Replace with component functions, as well as additional functions for related path (URL strings).

getCurrentPath($absolute=TRUE,$args=FALSE)
getParentPath($absolute=TRUE)
getSitePath(...)
getRootPath(...)

In many cases, getSitePath() and getRootPath() will return the same result. However, if a self-contained site has been declared in the routing structure of the installation, getSitePath() will refer to the root of the declared site, not the root of the Escher installation.