icingaweb2/modules/doc/application/controllers/IndexController.php

24 lines
632 B
PHP
Raw Normal View History

2013-10-16 14:45:23 +02:00
<?php
// @codingStandardsIgnoreStart
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Application\Icinga;
use Icinga\Module\Doc\Parser as DocParser;
2013-10-16 14:45:23 +02:00
use Icinga\Web\Controller\ActionController;
class Doc_IndexController extends ActionController
{
/**
* Display the application's documentation
*/
2013-10-16 14:45:23 +02:00
public function indexAction()
{
$parser = new DocParser();
list($html, $toc) = $parser->parseDirectory(Icinga::app()->getApplicationDir('/../doc'));
$this->view->html = $html;
$this->view->toc = $toc;
2013-10-16 14:45:23 +02:00
}
}
// @codingStandardsIgnoreEnd