Questions tagged as 'symfony3'

1
answer

configure emails in digitalocean for several domains

I need to send and receive emails for several domains on a digitalocean VPS. I can not find the correct configuration for the emails to come out with [email protected] for each domain and you can receive emails to the same account (even if the a...
asked by 07.09.2017 / 13:21
0
answers

Building app with REST API in Symfony3 and AngularJS, problems with routing

Good morning, This time I am developing a new application and I am going to build the app with a REST API in Symfony3 and the frontend that consumes the API in AngularJS , I have several doubts and I hope you can help me, they ar...
asked by 31.07.2017 / 17:39
1
answer

show in twig the result of a JOIN query in Symfony

I have 2 tables which are not related by ORM so I do the JOIN in the following way: $dql="Select u, o from BackendBundle:Orders o JOIN BackendBundle:Users u WITH o.userid=u.id"; $query=$em->createQuery($dql);...
asked by 01.08.2017 / 19:39
2
answers

Error to edit a record in Symfony

I have a relationship between 2 tables Orders and Users and the information is displayed correctly. Mapping Users: BackendBundle\Entity\Users: type: entity table: users id: id: type: integer nullable: false...
asked by 02.08.2017 / 19:24
1
answer

JOIN error with Symfony

I have a relationship between 2 Orders and Users tables from the field user_id and id respectively. I make this query: $dql="SELECT u, o FROM BackendBundle:Orders o JOIN o.users u"; $query=$em->createQuery($dql)...
asked by 02.08.2017 / 05:30
1
answer

Problem installing Sylius on the server

I am using Sylius in digitalocean within my droplet and I use this code: composer create-project -s beta sylius/sylius-standard acme You download everything perfect but when you use this: php bin/console sylius:install Show me the er...
asked by 28.06.2017 / 20:53
1
answer

shopping cart with symfony3 and jquery

I need to keep the shopping cart updated with the products that are added. With jQuery I could find the way to add them locally but I can not persist them and / or keep them in a session. What I need is that when surfing, keep those products and...
asked by 04.07.2017 / 02:07
0
answers

Save extensive variables in separate files

I'm working with a driver that makes very extensive SQL statements, so my code ends up being disgusted with 2000 lines of pure String to go to executeQuery() , is there a good practice ( I do not want to make use of non-maintainable meth...
asked by 20.06.2017 / 18:32
1
answer

How to know what the project is open in localhost?

I'm following the Symfony 3 course on openclassrooms and I downloaded the code used by the teacher in his course next to a project that I created with sudo php symfony.phar new Symfony in / var / www / My question is simple: If bot...
asked by 19.05.2017 / 03:27
1
answer

How to create an extension twig in symfony that returns the day of the week?

How you can create an extension in twig, that does the same as this PHP code: public function nombredia($nombredia) { $dias = array('','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado','Domingo'); $fecha = $dias[date('N', strt...
asked by 26.05.2017 / 00:32