2017 © Pedro Peláez
 

library laravel-fluid-bridge

TYPO3.Fluid support for Laravel.

image

diego/laravel-fluid-bridge

TYPO3.Fluid support for Laravel.

  • Friday, September 2, 2016
  • by sirdiego
  • Repository
  • 2 Watchers
  • 3 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Installation

composer require diego/laravel-fluid-bridge dev-master

In the config/app.php add FluidServiceProvider to the providers section., (*1)

'providers' => [
    Diego\Fluid\FluidServiceProvider::class,
],

Usage

The Laravel Way

By default you can now resolve ".html" templates with the normal view('name') call. These files will be rendered by TYPO3.Fluid., (*2)

The Extbase Way

Further more you can exten the Diego\Fluid\Controller\AbstractFluidController instead of the BaseController and use the view like in Extbase:, (*3)

class Page extends AbstractFluidController
{
    public function welcome()
    {
        $this->view->assign('name', 'John');
    }
}

This will resolve the template name to resources/views/Templates/Page/Welcome.html automatically and will render the template after the action is finished., (*4)

The Versions

02/09 2016

dev-master

9999999-dev

TYPO3.Fluid support for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by diego