view->chapterHtml = $parser->getChapter($chapterName); $this->view->toc = $parser->getToc(); } /** * Populate toc * * @param string $path Path to the documentation * @param string $name Name of the documentation */ protected function populateToc($path, $name) { $parser = new DocParser($path); $toc = $parser->getToc(); $this->view->tocRenderer = new NodeRenderer($toc); $this->view->docName = $name; } }