mfc / symfony-fluid-bundle
Fluid integration for Symfony
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- symfony/asset: *
- symfony/dependency-injection: *
- symfony/form: *
- symfony/http-foundation: *
- symfony/http-kernel: *
- symfony/routing: *
- typo3fluid/fluid: ^2.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-11-07 16:06:34 UTC
README
Installation
- install package
composer require fluid-adapter/symfony-fluid-bundle
- activate bundle
Add new FluidAdapter\SymfonyFluidBundle\FluidBundle()
to the Bundles in the app\AppKernel.php
- add fluid template engine
Add fluid
to the framework.templating.engines
array in app/config/config.yml
Rendering Fluid Templates
You can simply use the built-in render method in the controller to render a fluid template like this:
return $this->render('Default/Index.html', [
'foo' => 'bar'
]);
Template Paths
Templates are loaded from app/Resources/views/Templates/
, app/Resources/views/Layouts/
and app/Resources/views/Partials/