2014-05-28 13:33:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use \Zend_Controller_Router_Route;
|
|
|
|
use Icinga\Application\Icinga;
|
|
|
|
|
|
|
|
if (Icinga::app()->isCli()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$docModuleChapter = new Zend_Controller_Router_Route(
|
2014-07-29 11:19:40 +02:00
|
|
|
'doc/module/:moduleName/chapter/:chapterTitle',
|
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(
|
2014-07-29 11:19:40 +02:00
|
|
|
'doc/icingaweb/chapter/:chapterTitle',
|
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);
|
2014-05-28 13:34:39 +02:00
|
|
|
|