eZ Community » Forums » Discussions » eZ Find with Symfony controller and...
expandshrink

Wednesday 19 February 2014 2:53:44 pm - 3 replies

» Read full blog post

Introduction

Continuing with the migration of a site from eZ Publish 4 to eZ Publish 5, here's a sample of how you can use legacy code from a Symfony controller and use Twig templates to render the response. 

Wednesday 19 February 2014 4:15:17 pm

Great one again Carlos, keep-up!

Tuesday 25 February 2014 10:46:33 am

Hello,

Great job. I had a problem with SearchAdapter :

public function __construct(Kernel $legacyKernel, $searchTerm, ContentService $contentService) 

I removed 'ContentService' to make it works (using version 5.2 EE).

Modified on Tuesday 25 February 2014 12:00:31 pm by Nicolas Pastorino

Wednesday 26 February 2014 10:22:57 am

Quote from Bru Bor :

Hello,

Great job. I had a problem with SearchAdapter :

public function __construct(Kernel $legacyKernel, $searchTerm, ContentService $contentService) 

I removed 'ContentService' to make it works (using version 5.2 EE).

Hi Bru. Thanks for your comment. About the error, please note two things. First is that in my copy paste i had ContentService$contentService and that obviously needs a blank space before the $

Which error did you get anyway? Please also note that you need to add and use statement for the contentservice. It's not included in the pasted code but it is in github.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from