public function setTemplatePathAndFilename($templatePathAndFilename)
    {
        $this->baseRenderingContext->getTemplatePaths()->setTemplatePathAndFilename($templatePathAndFilename);

        $partialRootPaths = $this->baseRenderingContext->getTemplatePaths()->getPartialRootPaths();
        $layoutRootPaths = $this->baseRenderingContext->getTemplatePaths()->getLayoutRootPaths();
        array_unshift($partialRootPaths, Files::concatenatePaths([dirname($templatePathAndFilename), 'Partials']));
        array_unshift($layoutRootPaths, Files::concatenatePaths([dirname($templatePathAndFilename), 'Layouts']));
        $this->baseRenderingContext->getTemplatePaths()->setPartialRootPaths($partialRootPaths);
        $this->baseRenderingContext->getTemplatePaths()->setLayoutRootPaths($layoutRootPaths);
    }
public function setTemplatePathAndFilename($templatePathAndFilename)
    {
        $this->baseRenderingContext->getTemplatePaths()->setTemplatePathAndFilename($templatePathAndFilename);

        $partialRootPaths = $this->baseRenderingContext->getTemplatePaths()->getPartialRootPaths();
        $layoutRootPaths = $this->baseRenderingContext->getTemplatePaths()->getLayoutRootPaths();
        array_unshift($partialRootPaths, Files::concatenatePaths([dirname($templatePathAndFilename), 'Partials']));
        array_unshift($layoutRootPaths, Files::concatenatePaths([dirname($templatePathAndFilename), 'Layouts']));
        $this->baseRenderingContext->getTemplatePaths()->setPartialRootPaths($partialRootPaths);
        $this->baseRenderingContext->getTemplatePaths()->setLayoutRootPaths($layoutRootPaths);
    }
public function setTemplatePathAndFilename ( $ templatePathAndFilename ) { $ this -> baseRenderingContext -> getTemplatePaths ( ) -> setTemplatePathAndFilename ( $ templatePathAndFilename ) ; $ partialRootPaths = $ this -> baseRenderingContext -> getTemplatePaths ( ) -> getPartialRootPaths ( ) ; $ layoutRootPaths = $ this -> baseRenderingContext -> getTemplatePaths ( ) -> getLayoutRootPaths ( ) ; array_unshift ( $ partialRootPaths , Files :: concatenatePaths ( [ dirname ( $ templatePathAndFilename ) , 'Partials' ] ) ) ; array_unshift ( $ layoutRootPaths , Files :: concatenatePaths ( [ dirname ( $ templatePathAndFilename ) , 'Layouts' ] ) ) ; $ this -> baseRenderingContext -> getTemplatePaths ( ) -> setPartialRootPaths ( $ partialRootPaths ) ; $ this -> baseRenderingContext -> getTemplatePaths ( ) -> setLayoutRootPaths ( $ layoutRootPaths ) ; }
Sets the absolute path to a Fluid template file

@param string $templatePathAndFilename Fluid template path
@return void
@api
Sets the absolute path to a Fluid template file