Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kirkegaard
Created March 16, 2010 12:03
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 kirkegaard/333877 to your computer and use it in GitHub Desktop.
Save kirkegaard/333877 to your computer and use it in GitHub Desktop.
<?php
protected function _initRestRoute() {
$this->bootstrap('frontController');
$frontController = Zend_Controller_Front::getInstance();
$restRoute = new Zend_Rest_Route($frontController, array(), array(
'api',
'planner' => array('event'),
));
$frontController->getRouter()->addRoute('rest', $restRoute);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment