PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Aura.Router can also be used as a micro-framework dispatcher!

Note: This article was originally published at Planet PHP on 8 November 2012.
Planet PHP
Sometimes you may wish to use Aura as a micro-framework. It's also possible to assigning anonymous function to controller: add("read", "/blog/read/{:id}{:format}", [ "params" = [ "id" = "(\d+)", "format" = "(\..+)?", ], "values" = [ "controller" = function ($args) a Continue reading a'