Doc: Support `doc/module/:moduleName/chapter/:chapterName' URLs
refs #4820
This commit is contained in:
parent
c12c4a9e4c
commit
0f4d2ad80c
|
@ -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);
|
Loading…
Reference in New Issue