Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?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