Posts by Alexandro Zaleski • 215 points
15 posts
-
0
votes1
answer35
viewsQ: Docker Automatic Containers after RUN on Dockerfile
A Doubt about the dockerfile: After I run the build it creates some containers with < None >tag, is that normal? You shouldn’t only create php? FROM php:7.2-apache RUN apt-get update…
-
0
votes1
answer37
viewsA: Seeking null value with get in the Doctrine Entity
Eai.. look at this.. I just figured out how to solve the problem.. Just use the type hinting of php7 and put a ? before setting the return. So: /** * @return string */ public function getToken():…
-
0
votes1
answer37
viewsQ: Seeking null value with get in the Doctrine Entity
Opa all right? I have a problem with values NULL with Doctrine. What happens: I have some fields in a database table where I keep some values for future validations, these fields are nullable =…
-
0
votes1
answer26
viewsQ: Problem with error checking at login time
I’m having a problem checking login errors with symfony 4. I’m trying to log into the system, only I don’t know why form, even being with the method POST sending GET and because of that I can’t…
-
0
votes1
answer56
viewsQ: Using Voter with Symfony 4
I’m learning Symfony 4 and I am facing a problem. In version 4 of Symfony the ACL was discontinued and from what I’ve seen they’re using the Voter. I’ve researched the internet and the documentation…
-
0
votes1
answer72
viewsQ: How to pick up the iPhone model
I’m starting with Swift and I need to get the exact model of IPHONE of the client, already tried the Uidevice() but he only returns to me Iphone or Ipad and I need to know if the device is a SE, 7,…
-
3
votes2
answers184
viewsQ: Do data received via Request using Doctrine need to be processed?
I’m developing a new project, it’s the first time I’m using Doctrine with Silex and I am in doubt as to the receipt of information through forms. I receive the data from forms through the Request of…
-
2
votes1
answer132
viewsA: Doctrine ORM returning array[0] in find
I managed to solve. the problem is that Doctrine findBy, returns an array with other arrays inside, then to return a single record I needed to use findOneBy ai solved my problem. Follow the code…
-
3
votes1
answer132
viewsQ: Doctrine ORM returning array[0] in find
I have a question. I implemented Doctrine with Silex, created the entity, the Repository and the service, but when it comes to doing a search with findByEmail() for example, to display the result I…
-
1
votes1
answer199
viewsQ: Create Dockerfile for Zend Expressive
Hello folks I’m having a hard time running the expressive zend with the Docker. I have other projects that work perfectly with Docker but when I try to develop with zend expressive, I can’t, it…
-
2
votes1
answer95
viewsQ: How to insert a file into an array
I’m having a hard time and I couldn’t fix it. I have a settings file in this file I have an array and several arrays within it and one of these is my route array. What I need to do is include a file…
-
1
votes2
answers961
viewsA: Best practice for empty folders in . gitignore
Look, guys, I did some research, some analysis, and I came to the conclusion that each situation is unique and for my best was to create a file. gitignore within each folder I want to keep empty and…
-
4
votes2
answers961
viewsQ: Best practice for empty folders in . gitignore
Some people told me that the correct thing is to create an empty file and put inside each folder and set one .gitignore thus: /pasta/subpasta/* !/pasta/subpasta/.arquivovazio And other people told…
-
5
votes2
answers4140
viewsQ: Catch user city with IP
I need to take the city that the user is in at the time of access to the Control Panel of the Site. 'Cause I need this? I’m willing to block access to the control panel only for my client’s city,…
phpasked Alexandro Zaleski 215 -
0
votes0
answers122
viewsQ: Migration problem from PSR-0 to PSR-4
I’m new here but I’ve been programming for over 10 years in PHP and I’ve been programming Object Oriented for a short time. Doing some tests I saw that the PSR-0 is deprecated and then a project of…