Questions tagged as 'symfony'

1
answer

Error executing script in Python3 (with Symfony / Process) on a Laravel Controller

I'm trying to run a Python3 script I've developed, which is located in a folder inside Laravel's app folder. One of the script is called by a Controller and the other by an Artisan Command. public static function searchAnswers($input) {...
asked by 18.09.2018 / 14:48
1
answer

How to display images in symfony

I'm starting in symfony and would like to know how to display an image correctly. I'm changing the index.html.twing and it stays in app / resource / view / default / and the base.html.twing that stays in app / resource / view /. I put <img...
asked by 19.07.2016 / 23:11
1
answer

how to record in the monolog the result of var_dump ($ _ FILES);

I need to save in the monolog the var_dump ($ file) log to identify an error. I do not know how to proceed. My monolog in app \ config monolog: handlers: main: type: 'rotating_file' path: "%kernel.logs_dir%/...
asked by 13.07.2016 / 21:54
1
answer

Retrieve data from Symfony action in Ajax

Hi, I have a button that triggers a Ajax action that leads to a action in controlador Symfony . In the action I can do select and see the information I want, but I just can not get it in Ajax, in view . Look at m...
asked by 17.11.2015 / 12:07
1
answer

Recover Date of type Date - php + mysql

Hello, I'm looking for a date information from a database with a lot of information, I'm doing this: $data = $tbdeliberacoes->getData(); date("d/m/Y", strtotime($data)); And this is my return on screen: 31/12/1969 For all fields...
asked by 10.08.2015 / 14:23
1
answer

Print an array with multiple data from a select, once

I have an array that receives precisely 18 values. Each "key" of this array is a time and each value of this is an SQL query. I pass this array to a json file to bring the data objects I need. The problem is that this array prints severa...
asked by 15.06.2015 / 15:39
4
answers

Does anyone know a good ACL tutorial on Symfony 2? [closed]

I am starting a new project and I decided to use Symfony, I would like to know if anyone knows a good tutorial on acl and / or roles so I can implement it. The hierarchy I'm going to need to use is something like this:    Master > Compa...
asked by 29.01.2014 / 16:33
0
answers

symfony easy admin bundle does not show image of vich uploader bundle

Good night programmers, I'm stuck on a problem all afternoon, you know how, trying to upload an image using the vich uploader bundle for symfony and show it on easy admin I'm following the tutorial ( link ) I managed to upload the image, b...
asked by 14.11.2018 / 23:58
1
answer

Finding null value with get in Doctrine Entity

Hi, how are you? I'm having a problem with NULL with Doctrine . What happens: I have some fields in a database table where I save some values for future validations, these fields are nullable = true . I'll give an example: Whe...
asked by 29.10.2018 / 18:00
1
answer

Use DocQuery createQueryBuilder with tables that have no entity

Is it possible to query Doctrine's createQueryBuilder using a table that does not have an Entity? Example: In the code below table table2 (t2) does not have an entity created, because it is a relationship table and only has the relation field...
asked by 12.09.2018 / 02:27