doc: No longer use a partial for viewing a toc

refs #4820
This commit is contained in:
Eric Lippmann 2014-05-28 17:16:37 +02:00
parent f0b6a3557e
commit 2f1303a13b
2 changed files with 4 additions and 19 deletions

View File

@ -1,14 +0,0 @@
<div class="controls">
<h1><?= $docName ?> documentation</h1>
</div>
<div class="content" data-base-target="_next">
<?= $this->partial(
'layout/menu.phtml',
'default',
array(
'items' => $docToc->getChildren(),
'sub' => false,
'url' => ''
)
) ?>
</div>

View File

@ -23,17 +23,16 @@ class DocController extends ActionController
}
/**
* Render a toc
* Populate toc
*
* @param string $path Path to the documentation
* @param string $name Name of the documentation
*/
protected function renderToc($path, $name)
protected function populateToc($path, $name)
{
$parser = new DocParser($path);
list($docHtml, $docToc) = $parser->getDocAndToc();
$this->view->docToc = $docToc;
list($docHtml, $tocRenderer) = $parser->getDocAndToc();
$this->view->tocRenderer = $tocRenderer;
$this->view->docName = $name;
$this->_helper->viewRenderer('partials/toc', null, true);
}
}