‪TYPO3CMS  9.5
TemplateView.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
18 use TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException;
19 
24 {
30  public function ‪setLayoutPathAndFilename($layoutPathAndFilename)
31  {
32  $this->baseRenderingContext->getTemplatePaths()->setLayoutPathAndFilename($layoutPathAndFilename);
33  }
34 
42  {
43  try {
45  $this->‪setControllerContext($controllerContext);
46  $this->baseRenderingContext->getTemplatePaths()->setFormat($request->getFormat());
47  $this->baseRenderingContext->getTemplatePaths()->getTemplateSource($request->getControllerName(), $request->getControllerActionName());
48  return true;
50  return false;
51  }
52  }
53 }
‪TYPO3\CMS\Fluid\View\AbstractTemplateView\$controllerContext
‪TYPO3 CMS Extbase Mvc Controller ControllerContext $controllerContext
Definition: AbstractTemplateView.php:33
‪TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext
Definition: ControllerContext.php:21
‪TYPO3\CMS\Fluid\View\TemplateView
Definition: TemplateView.php:24
‪TYPO3\CMS\Fluid\View\AbstractTemplateView
Definition: AbstractTemplateView.php:30
‪TYPO3\CMS\Fluid\View\AbstractTemplateView\setControllerContext
‪setControllerContext(\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
Definition: AbstractTemplateView.php:74
‪TYPO3\CMS\Fluid\View\TemplateView\canRender
‪bool canRender(ControllerContext $controllerContext)
Definition: TemplateView.php:41
‪TYPO3\CMS\Fluid\View\TemplateView\setLayoutPathAndFilename
‪setLayoutPathAndFilename($layoutPathAndFilename)
Definition: TemplateView.php:30
‪TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext\getRequest
‪TYPO3 CMS Extbase Mvc Request getRequest()
Definition: ControllerContext.php:81
‪TYPO3\CMS\Fluid\View\Exception\InvalidTemplateResourceException
Definition: LegacyClassesForIde.php:72
‪TYPO3\CMS\Fluid\View
Definition: AbstractTemplateView.php:2