Freaks,
My goal is trying to edit the code below so, no matter what, everything gets sent to the Index controller:
so, for example:
http://domain.tld/page would go to the Index Controller, and call the pageAction method.
right now, that would get sent to the page controller...
Yaf_Dispatcher::getInstance()->getRouter()->addRoute(
"pages", new Yaf_Route_Regex(
"#^/index/page/(\d+)#",
array('controller' => "Index"),
array(1 => "page")
)
);
I'm horrible with regular expressions. I'm pretty sure I could just edit #^/index/page/(\d+)# (and remove the 2nd part of the array) and it will just work. Any help would be greatly appreciated!
There is a bit of info here about it: http://php.net/manual/en/yaf-route-rewrite.construct.php
THANK YOU!