/** * Initialize the EpubManager class to create a new, local book directory * @return string path to epub directory */ protected function initLocalEpub() { $tmpDir = Configure::read('Chaucer.instanceName') . '/' . $this->bookId; $targetDir = Folder::addPathElement($this->FileManager->getTmpPath(), $tmpDir); $this->epub->initEpub($targetDir . '/'); return $this->epub->epubRoot(); }