nervetattoo / aether

Modular PHP framework
aether-project.com
10 stars 1 forks source link

Redirection based on config names #17

Open simeng opened 13 years ago

simeng commented 13 years ago

Config should be able to name rules so they can be referred to by redirections in modules. Example:

The service locator should provide a method of redirecting to an URL based on the names in the config. ex: $this->sl->redirect("product", array("productId" => 1234)); would reverse resolve to the URL /product/1234 while $this->sl->redirect("products"); would resolve to URL /product