Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules/doc: Add route 'modules/doc/icingaweb' to display Icinga Web …
…2's documentation refs #4820
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
modules/doc/application/controllers/IcingawebController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>Icinga Web 2 Documentation</h1> | ||
<?= $this->partial( | ||
'partials/docandtoc.phtml', | ||
'doc', | ||
array( | ||
'docToc' => $docToc, | ||
'docHtml' => $docHtml | ||
) | ||
); ?> |