This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.php

36 lines
827 B
PHP
Raw Normal View History

<?php
namespace Symfony\Bundle\FrameworkBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
2010-04-07 02:07:59 +01:00
* TemplateController.
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class TemplateController extends Controller
{
/**
* Renders a template.
*
* @param string $template The template name
*
* @return Response A Response instance
*/
public function templateAction($template)
{
return $this['templating']->renderResponse($template);
}
}