in Frontend: $r = $this->add("Controller_PatternRouter") ->addRule("(news\/.*)", "news_item", array("u")) ->route(); if REQUEST_URI is "/news/some-name-of-your-news/", then router would: 1) set $this->app->page to "news_item" 2) set $_GET["u"] to "news/some-name-of-your-news/" uri. Authors: j@agiletech.ie, r@agiletech.ie.
Inheritance: extends AbstractController
Example #1
0
 function init()
 {
     parent::init();
     //        var_dump($this->api->page);
 }