Example #1
0
 protected final function fixroute($a_route)
 {
     $r = new Zoombi_Route($a_route);
     if (!$r->getModule()) {
         $r->setModule($this->getConfig()->getValue('module.default_name', self::DEFAULT_MODULE_NAME));
     }
     if (!$r->getController()) {
         $r->setController($this->getConfig()->getValue('controller.default_name', self::DEFAULT_CONTROLLER_NAME));
     }
     if (!$r->getAction()) {
         $r->setAction($this->getConfig()->getValue('controller.default_action', self::DEFAULT_ACTION_NAME));
     }
     $o = (string) $r;
     unset($r);
     return $o;
 }