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 getPathByInstance shorthand to $router->resolvePath() #10

Closed thomshouse closed 12 years ago

thomshouse commented 13 years ago

We devised a shorthand notation for using getPathByInstance as part of $router->resolvePath(). Shorthand is as follows:

@controller/123 => controller ; instance_id @controller/action => controller ; action @controller => controller

We can also attach it to getPathById():

@123 => (route) id