modules/doc: Add route 'modules/doc/icingaweb' to display Icinga Web 2's documentation

refs #4820
This commit is contained in:
Eric Lippmann 2014-05-23 09:40:00 +02:00
parent e6abe21fb8
commit ce37c20736
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Module\Doc\Controller as DocController;
class Doc_IcingawebController extends DocController
{
public function indexAction()
{
$this->populateView();
}
}

View File

@ -0,0 +1,9 @@
<h1>Icinga Web 2 Documentation</h1>
<?= $this->partial(
'partials/docandtoc.phtml',
'doc',
array(
'docToc' => $docToc,
'docHtml' => $docHtml
)
); ?>