public setPartialRootPath ( string $partialRootPath ) : void | ||
$partialRootPath | string | Fluid partial root path |
리턴 | void |
public function setPartialRootPath($partialRootPath)
{
$this->baseRenderingContext->getTemplatePaths()->setPartialRootPaths([$partialRootPath]);
}
/** * @test * @expectedException \Neos\FluidAdaptor\View\Exception\InvalidTemplateResourceException */ public function getPartialPathAndFilenameThrowsExceptionIfPartialFileIsADirectory() { vfsStreamWrapper::register(); mkdir('vfs://MyPartials/NotAFile'); $this->standaloneView->setPartialRootPath('vfs://MyPartials'); $this->standaloneView->getTemplatePaths()->getPartialSource('NotAFile'); }