Questions tagged [symfony-3.2]

This is the Symfony 3.2.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.2.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.2 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.2.0 version was released on the 30th November 2016.

326 questions
0
votes
2 answers

Blank rows cannot be written; use delete instead - PHP

I'm using Symfony 3.2 (PHP Framework) and Google API for Manage Google Spreadsheet using code. I use google/apiclient, and asimlqt/php-google-spreadsheet-client library for manage Google Sheets. As usually, I also created Application in…
Ketav
  • 760
  • 1
  • 8
  • 27
0
votes
0 answers

Symfony Traditional Login not working

Can not login and redirect to home page. How can i archive this? please look in my script. here is my login html code login.html.twig {% if error %}
{{ error.messageKey|trans(error.messageData, 'security') }}
{% endif %}
Hemraj Pal
  • 164
  • 10
0
votes
4 answers

How can i use symfony 3 with mariadb and doctrine?

How can i use symfony 3 with mariadb? But i want to use doctrine also but i did not see any useful information on http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#sqlanywhere So please guide or provide…
Ricky ponting
  • 4,537
  • 4
  • 13
  • 26
0
votes
3 answers

How to pass multiple route parameters in twig?

Hello I'm trying to send multiple parameters from twig like this Link I have declare my controller as follows: /** * @Route("/categoria/{param1}", name="categoria") …
Álvaro
  • 157
  • 4
  • 10
0
votes
1 answer

Make InfiniteScroll with Ionic 3

I'm using symfony3 and FosRestBundle for backend and Ionic 3 for frontend. I have followed the documentation of Ionic to make an InfiniteScroll but I didn't reach to do it. Just the loading text and the spinner appear and no data is pushed. This is…
hous
  • 2,577
  • 2
  • 27
  • 66
0
votes
1 answer

Symfony 3.2 with LiipImagineBundle not create folder media/cache

I'm use Symfony 3.2 with LiipImagineBundle 1.8.0 and Nginx with php7 fpm in production. In desenv the webserver is the php built-in server. In desenv works fine and cache dir are created in web folder, but in production not and Symfony return 404…
0
votes
1 answer

how matching URI using Route annotation on symfony

example case URI: '/department/id/1' Controller: /** @Route/department/id/{slug} */ function($slug) return new Response($slug) it return me '1' if I have URI:/department/id/1/category/id/2 how to form the @Route that…
kristyan
  • 81
  • 10
0
votes
0 answers

Symfony 3.3.6 change to service auto loading from 3.2

I updated to 3.3.6 yesterday and in setting up a new service I have created in AppBundle. Old style of service registration works - when I try the new approach it is not. I have a service AppBundle/Service/SomeService.php namespace…
Alex.Barylski
  • 2,843
  • 4
  • 45
  • 68
0
votes
1 answer

Search function symfony 3

Hello everyone I am new with Symfony3 and I have a problem with a DQL request it return an empty result! The request must return all the Logements with specific fields from the SearchBar! LogementController: public function searchAction(request…
Bel Amine
  • 1
  • 1
0
votes
1 answer

Login Form does not work if I require HTTPS (Symfony3)

I would like to create a login form, and require https for all pages of my website. My security.yml looks like this: access_control: #- { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https } - { path: ^/login, roles:…
Iter Ator
  • 8,226
  • 20
  • 73
  • 164
0
votes
1 answer

File extension validation in Symfony3

Is there any already implemented way to validate file extension in Symfony? File and Image validators can only validate mime type. Is there any way to do it or do I have to use a custom validator / callback?
user2394156
  • 1,792
  • 4
  • 16
  • 33
0
votes
1 answer

\Swift_Mailer expecting variable

In this question: someone said: Simply remove the $mailer from your constructor (you are not in a service, you are in a controller) , and use $this->get('mailer')->send($message); I done this, but now I got this error: Parse error: syntax…
Porygon
  • 25
  • 4
0
votes
1 answer

FosCommentBundle assetic exception to Symfony3

I'm trying to use FosCommentBundle to Symfony3. I complete all steps for installation with documentation of bundle. I add AppKernel infos and created database, updated schemas and added Jquery3. But when i try to check index.html.twig it gives…
onurkaya
  • 157
  • 2
  • 16
0
votes
1 answer

How to merge two symfony forms in one refering to the same class

In my project I am having 2 forms, one is UserForm1.php and the second is UserForm2.php. I would like to use both of these complexe forms without remaking them in a form type like FullUserForm.php. Has someone a tricks to do it ? I though about…
Djagu
  • 163
  • 1
  • 12
0
votes
0 answers

Reset _controller in kernel.request

I have implemented a onKernelRequest handler: class RequestSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents () { return array ( KernelEvents::REQUEST => [array ('onKernelRequest',…
Alex.Barylski
  • 2,843
  • 4
  • 45
  • 68