Skip to content

Commit

Permalink
modules/doc: Add route 'modules/doc/icingaweb' to display Icinga Web …
Browse files Browse the repository at this point in the history
…2's documentation

refs #4820
  • Loading branch information
lippserd committed May 27, 2014
1 parent e6abe21 commit ce37c20
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/doc/application/controllers/IcingawebController.php
@@ -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();
}
}
9 changes: 9 additions & 0 deletions modules/doc/application/views/scripts/icingaweb/index.phtml
@@ -0,0 +1,9 @@
<h1>Icinga Web 2 Documentation</h1>
<?= $this->partial(
'partials/docandtoc.phtml',
'doc',
array(
'docToc' => $docToc,
'docHtml' => $docHtml
)
); ?>

0 comments on commit ce37c20

Please sign in to comment.