Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created May 23, 2011 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eminetto/987348 to your computer and use it in GitHub Desktop.
Save eminetto/987348 to your computer and use it in GitHub Desktop.
router
$postRoute = new Zend_Controller_Router_Route(
    'post/:id',
    array(
        'module' => 'dafault',
        'controller' => 'post',
        'action' => 'view'
    )
);
$router = $frontController->getRouter();
$router->addRoute('post', $postRoute);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment