Questions tagged as 'symfony3'

1
answer

Problem with symfony query 3

I have the following situation, I have 3 tables. On the one hand I have a list of members, a list of charges and another table that shows the charges that each member has had in different years. What I need is to show a view with the list of mem...
asked by 28.06.2018 / 21:45
1
answer

How to perform this query in dql or querybuilder

How to perform this query on dql or querybuilder ? select m.id, m.nombre, c.id, c.nombre from miembro as m inner join ( select cmi.id_cargo, cmi.id_miembro, cmi.id from cargo__miembro as cmi inner join ( select muc.id as idmiembro,...
asked by 26.06.2018 / 18:50
1
answer

Error in HTTP response, code 200 without showing the expected result

I have a Symfony 3.4.8 application that was working perfectly. But it has stopped loading my javascript / css files without further ado. In Chrome everything comes in HTML code without loading the javascript and css files. Already in mozilla I l...
asked by 26.06.2018 / 10:34
0
answers

"Select from (Select" Subquery a doctrine dql

I have made a query to the database to get the actual availability of the rooms of several hotels but when trying to make the query with doctrine in symfony 3.4, I get an error. This is the query: SELECT (CASE WHEN count(_days) > 0 THEN...
asked by 08.06.2018 / 10:39
1
answer

How to show the age of a person in Symfony with twig

I have this PHP code that works but I would like to be able to use the same but within twig in symfony. <?php $cumpleanos = new DateTime("1982-06-03"); $hoy = new DateTime(); $annos = $hoy->diff($cumpleanos); echo $annos-...
asked by 31.05.2018 / 01:07
2
answers

php bin / console gives me error

My computer is Windows 8 and recently I started working with Symphony the problem is that when I put the php bin / console command on my "console" it gives me an error ( " php "is not recognized as an internal or external command, program or e...
asked by 24.05.2018 / 21:57
0
answers

login of users with symfony 3.4 email or nick

I have a question with the log of users with symfony 3.4 to see if you can help me I want to make a user can access using both the email and the Nick or user (in my case in the database figure nick. It's something relatively simple in theo...
asked by 01.05.2018 / 19:18
1
answer

Add value of a variable to a date

I am trying to add the value contained in a variable to a date, and that the result is another date. $hoy = $now->format('d/m/Y'); $dias = 36; $ newDate would be the result of adding to today's date the days that the variable contains. I...
asked by 25.04.2018 / 15:59
1
answer

How to get the current url in Twig in Symfony

I need to get the final route of the url in twig For example I have this url: http://www.hackeruna.com/pagina , I just need this part of the path /pagina .     
asked by 04.05.2018 / 00:42
0
answers

Configure services in different YAML files

I am trying to organize the configuration of the services in several YAML files, but this is giving me an error. This is my services.yml : imports: - { resource: services_ext.yml } # Learn more about services, parameters and container...
asked by 19.04.2018 / 17:13