diff --git a/modules/doc/application/views/scripts/partials/toc.phtml b/modules/doc/application/views/scripts/partials/toc.phtml
deleted file mode 100644
index c32285516..000000000
--- a/modules/doc/application/views/scripts/partials/toc.phtml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
= $docName ?> documentation
-
-
-= $this->partial(
- 'layout/menu.phtml',
- 'default',
- array(
- 'items' => $docToc->getChildren(),
- 'sub' => false,
- 'url' => ''
- )
-) ?>
-
diff --git a/modules/doc/library/Doc/DocController.php b/modules/doc/library/Doc/DocController.php
index 0929eac4e..ef44de478 100644
--- a/modules/doc/library/Doc/DocController.php
+++ b/modules/doc/library/Doc/DocController.php
@@ -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);
}
}