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

36 lines
660 B
PHP
Raw Normal View History

2013-10-16 08:45:23 -04:00
<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Module\Doc\Controller as DocController;
2013-10-16 08:45:23 -04:00
use Icinga\Module\Doc\DocParser;
class Doc_IndexController extends DocController
2013-10-16 08:45:23 -04:00
{
protected $parser;
public function init()
{
$module = null;
$this->parser = new DocParser($module);
}
public function tocAction()
{
// Temporary workaround
list($html, $toc) = $this->parser->getDocumentation();
$this->view->toc = $toc;
}
/**
* Display the application's documentation
*/
2013-10-16 08:45:23 -04:00
public function indexAction()
{
$this->populateView();
2013-10-16 08:45:23 -04:00
}
}