Initial Commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
class V1_Bootstrap extends Zend_Application_Module_Bootstrap
|
||||
{
|
||||
public function _init()
|
||||
{
|
||||
$frontController = Zend_Controller_Front::getInstance();
|
||||
$frontController->registerPlugin(new Zend_Controller_Plugin_PutHandler());
|
||||
}
|
||||
|
||||
public function _initPersonalRouter()
|
||||
{
|
||||
$router = Zend_Controller_Front::getInstance()->getRouter();
|
||||
|
||||
$router->addRoute(
|
||||
'paginator',
|
||||
new Zend_Controller_Router_Route('/:module/:controller/list/:page/:count/*',
|
||||
array(
|
||||
'module' => 'v1',
|
||||
'action' => 'get'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$router->addRoute(
|
||||
'getmethod',
|
||||
new Zend_Controller_Router_Route('/:module/:controller/m/:method/*',
|
||||
array(
|
||||
'module' => 'v1',
|
||||
'action' => 'get'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user