Doc: Support `doc/module/:moduleName/chapter/:chapterName' URLs

refs #4820
This commit is contained in:
Eric Lippmann 2014-05-28 13:33:07 +02:00
parent c12c4a9e4c
commit 0f4d2ad80c
1 changed files with 19 additions and 0 deletions

19
modules/doc/run.php Normal file
View File

@ -0,0 +1,19 @@
<?php
use \Zend_Controller_Router_Route;
use Icinga\Application\Icinga;
if (Icinga::app()->isCli()) {
return;
}
$docModuleChapter = new Zend_Controller_Router_Route(
'doc/module/:moduleName/chapter/:chapterName',
array(
'controller' => 'module',
'action' => 'chapter',
'module' => 'doc'
)
);
$this->addRoute('doc/module/chapter', $docModuleChapter);