public setLayoutRootPath ( string $layoutRootPath ) : void | ||
$layoutRootPath | string | Fluid layout root path |
리턴 | void |
public function setLayoutRootPath($layoutRootPath)
{
$this->baseRenderingContext->getTemplatePaths()->setLayoutRootPaths([$layoutRootPath]);
}
/** * @test * @expectedException \Neos\FluidAdaptor\View\Exception\InvalidTemplateResourceException */ public function getLayoutPathAndFilenameThrowsExceptionIfLayoutFileIsADirectory() { vfsStreamWrapper::register(); mkdir('vfs://MyLayouts/NotAFile'); $this->standaloneView->setLayoutRootPath('vfs://MyLayouts'); $this->standaloneView->getTemplatePaths()->getLayoutSource('NotAFile'); }