1
2
3
4
5
6
7
8
9
10
11
12
$valid = false;
$router = Zend_Controller_Front::getInstance()->getRouter();
foreach ($router->getRoutes() as $route) {
  if ($route->match($req->getRequestUri())) {
    Zend_Debug::dump($route); die;
    $valid = true;
    break;
  }
}
if (!$valid) {
  throw new Zend_Controller_Action_Exception('Resource Not Found!!!', 404);
}