2014-05-28 13:33:07 +02:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-05-28 13:33:07 +02:00
|
|
|
|
|
|
|
use Icinga\Application\Icinga;
|
|
|
|
|
|
|
|
if (Icinga::app()->isCli()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$docModuleChapter = new Zend_Controller_Router_Route(
|
2015-02-10 17:09:56 +01:00
|
|
|
'doc/module/:moduleName/chapter/:chapter',
|
2014-05-28 13:33:07 +02:00
|
|
|
array(
|
|
|
|
'controller' => 'module',
|
|
|
|
'action' => 'chapter',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-05-28 13:34:39 +02:00
|
|
|
$docIcingaWebChapter = new Zend_Controller_Router_Route(
|
2015-02-10 17:09:56 +01:00
|
|
|
'doc/icingaweb/chapter/:chapter',
|
2014-05-28 13:34:39 +02:00
|
|
|
array(
|
|
|
|
'controller' => 'icingaweb',
|
|
|
|
'action' => 'chapter',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-05-28 17:19:48 +02:00
|
|
|
$docModuleToc = new Zend_Controller_Router_Route(
|
|
|
|
'doc/module/:moduleName/toc',
|
|
|
|
array(
|
|
|
|
'controller' => 'module',
|
|
|
|
'action' => 'toc',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-07-28 19:15:44 +02:00
|
|
|
$docModulePdf = new Zend_Controller_Router_Route(
|
|
|
|
'doc/module/:moduleName/pdf',
|
|
|
|
array(
|
|
|
|
'controller' => 'module',
|
|
|
|
'action' => 'pdf',
|
|
|
|
'module' => 'doc'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2014-05-28 13:33:07 +02:00
|
|
|
$this->addRoute('doc/module/chapter', $docModuleChapter);
|
2014-05-28 13:34:39 +02:00
|
|
|
$this->addRoute('doc/icingaweb/chapter', $docIcingaWebChapter);
|
2014-05-28 17:19:48 +02:00
|
|
|
$this->addRoute('doc/module/toc', $docModuleToc);
|
2014-07-28 19:15:44 +02:00
|
|
|
$this->addRoute('doc/module/pdf', $docModulePdf);
|