thomshouse-escher / escher

Escher was a PHP MVC framework developed by Thom Stricklin from 2011-2013. Escher implemented a hybrid of Model2 MVC and PAC architectures and CMS concepts as well as plugins and configuration wizards. Development halted in 2013 in favor of Kohana and later Symfony, which closely aligned to the same design principles as Escher.
http://git.io/escher
4 stars 1 forks source link

Add additional router methods. #2

Closed thomshouse closed 13 years ago

thomshouse commented 13 years ago

Add the following methods to the $router class:

getPathByInstance($controller,$id=NULL,$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)