Questions tagged as 'symfony-2'

1
answer

Error uploading site

Personally I just uploaded a site of mine made in Laravel 5.2 with pho 5.6 locally. I uploaded to a shared hosting in Locaweb that I have. I configured PHP 5.6 correctly and uploaded the site to this giving me the following error message.   ...
asked by 16.05.2016 / 15:23
1
answer

What might be causing double requests to PHP?

I'm developing a system in Symfony2 and during the approval process the client caught an error in which the system alerts keep repeating. The code used is this: $objManager = $this->getDoctrine()->getManager(); $objRepositorio = $...
asked by 27.07.2015 / 22:56
1
answer

How to upload using php without forms

I need to upload a file from the local server to another server. In this environment I compact the file on the local server and send the compressed file to the remote server. The remote server will have the rules validation specifications to kno...
asked by 16.02.2015 / 17:26
1
answer

How to use the ParamConverter inside the controller or in service

The ParamConverter is a note I use constantly in Symfony to retrieve the data sent already in object, so the parse is made automatic, in my case, just add comment in the method of the respective controller and when receiving the parameter sy...
asked by 18.05.2016 / 21:08
1
answer

How to import CSV into Symfony2

I am trying to create a generic form to import the CSV the $ data represents a complete line of csv data. I'm trying to generate a response to register the data using form public function save(\Symfony\Component\Form\Form $form, $data ){...
asked by 20.03.2015 / 11:56
2
answers

Semantical Error - Doctrine createQueryBuilder

But once I get caught using doctrine usage. I wanted to do this: SELECT c.nm_computador, c.te_ip_computador, log.usuario, log.data FROM computador c INNER JOIN log_user_logado log ON c.id_computador = log.id_computador; But I do this:...
asked by 07.11.2014 / 18:32
1
answer

How to customize Form generated by Symfony CRUD?

I am changing the Symfony template so that CRUD already has the format I need, I could change almost everything, but now I had to change the form, to edit the css classes and other elements with div and etc. .. to stay in line with the layout I...
asked by 31.07.2014 / 14:40
2
answers

How Symfony 2 manages route conflicts with the same name

I'm using annotations in the project. In the file routing.yml I have the following configuration: acme_store: resource: "@AcmeStoreBundle/Controller/" type: annotation prefix: /acme teste_blog: resource: "@Test...
asked by 10.03.2016 / 15:28
1
answer

How to lock project version in symfony

I have a 2.6 version in symfony and would like to lock my project in it so I do not run the risk of giving an update and start bugs. Does anyone know the command to do this?     
asked by 04.01.2016 / 14:34
1
answer

Use the like in findby method to filter records?

I have the following code in my controller: $shares = $this ->getDoctrine() ->getRepository('AppBundle:Shares') ->findBy( $where, $orderBy, $paginator->getPerPage(), $paginator->getCur...
asked by 10.05.2016 / 16:10