thomshouse/escher — Issue #2: Add additional router methods.
Author: thomshouse
Created: 2011-10-24 22:48:12+00:00
State: open
Labels: Feature Request

Add the following methods to the $router class:

getPathByInstance($controller,$id=0,$absolute=TRUE)
Returns the URL string of the path corresponding to the given controller/id.

getRoute()
Returns the $route model

resolvePath($url,$absolute=TRUE)
resolves a relative path optionally containing shorthand notation to an absolute path (or, if $absolute==FALSE, a path relative to the root of the Escher installation)