3 * @desc Object to handle fancy friendly url requests
6 * @author Marius Orcsik <marius@habarnam.ro>
10 class tsUrlFancy
extends tsUrlFriendly
{
11 private $routes = array ();
13 public function addRoutes ($regexRoutes = array()) {
14 if (!is_array($regexRoutes) ||
sizeof ($regexRoutes) == 0)
16 $this->routes
= $regexRoutes;
20 * uses the regex for $controller controller to replace the subpatterns
23 * the output is passed to the parent::setRequest method
24 * @see _res/_libs/urlhelpers/tsUrlFriendly#setRequest()
26 public function setRequest ($array = array()) {
27 $controller = array_shift($array);
28 $action = array_shift($array);
31 return parent
::setRequest ($array);