Posts by Lucas Lima • 773 points
38 posts
-
0
votes1
answer56
viewsA: Can you list all namespaces from a specific one?
I managed to solve this psr-4 problem, and mapped the namespaces the way I wanted them to.
-
0
votes1
answer60
viewsA: Doesn’t Doctrine ORM 2 have support for working with VIEWS?
Sorry I had forgotten to put the view as readonly,after I put worked all beauty.
-
0
votes1
answer39
viewsA: How to use Filters in Doctrine?
To solve this problem I used Doctrine filter Collection. link: https://knpuniversity.com/screencast/collections/criteria-collection-filtering…
-
0
votes1
answer239
viewsA: Good Practice in APIS Rest Full with PHP and Doctrine ORM 2
I used the manual that friend rray indicated to me, and I went very deep into the theory which made me have a greater understanding of how this technology works to why apply the best methods of…
-
1
votes2
answers112
viewsA: Why can’t I send the "+" character via post in a simple HTML form?
I made a treatment with Javascript, before sending the request I use the function encodeURIComponent() to encode the password string before validating the login on the server, so I was able to use…
-
0
votes1
answer160
viewsQ: Is it always necessary to call the father-class builder in the daughter-class?
created two classes a parent class that has a builder where I have to pass some arguments, and a daughter class that inherits this parent class that I created, but in the daughter class I did not…
phpasked Lucas Lima 773 -
2
votes1
answer197
viewsQ: What does the -n command in git mean
They gave me a command to see the last commit of a file that was deleted, I know what it means all subcommands but I don’t know what the command means -n, see the example of the command below: log…
gitasked Lucas Lima 773 -
0
votes2
answers112
viewsQ: Why can’t I send the "+" character via post in a simple HTML form?
I made a simple html page that when receiving the login and a password it send to another page where the data is checked, the problem is that when you put the character "+" in the password it just…
-
4
votes1
answer120
viewsQ: What do these arguments mean in the "git-checkout" command?
I have the following command in Git to recover a file: git checkout (hash-commit)^ --(caminho-arquivo) In this command what the ^ and --?…
gitasked Lucas Lima 773 -
0
votes1
answer56
viewsQ: Can you list all namespaces from a specific one?
I need to instantiate a class by just passing her name and trying to instantiate her at several different nemapaces until I do. The Framework does not accept instantiating any class without the…
-
4
votes1
answer154
viewsQ: What does this command mean in git " "?
I don’t like using commands without knowing the meaning, so would someone tell me what this command means in git: ^ ?
-
2
votes1
answer232
viewsA: Git, how to move a file from one folder to another along with its history?
The file does not lose history when we move it from one directory to another within the same repository, using the git log you will see its history according to the current directory, but if you…
gitanswered Lucas Lima 773 -
0
votes1
answer232
viewsQ: Git, how to move a file from one folder to another along with its history?
I’m moving a file from one folder to another with the git mv however the file is not coming with the history, how do I resolve this ?
gitasked Lucas Lima 773 -
1
votes2
answers2666
viewsA: Git, how do I move a file or folder to another repository keeping the history?
I found a solution that is on this link here: How to Move Changes Between Repositories Git Cherry-Pick As I said to the friend above I know we are working the wrong way, but when this was proposed I…
gitanswered Lucas Lima 773 -
1
votes2
answers2666
viewsQ: Git, how do I move a file or folder to another repository keeping the history?
I have 2 repositories: /var/www/project /var/www/project_disabled I have a file in a specific folder within my repository project and I want to move this file with all its git history from the…
gitasked Lucas Lima 773 -
8
votes1
answer84
viewsQ: Is it recommended to use loose Return in a PHP file? When?
It is good practice to give a Return in a simple PHP file example: <?php $config['teste'] = 123; return $config; I’ll explain better I have this file di/dependencias.php: <?php…
phpasked Lucas Lima 773 -
0
votes1
answer60
viewsQ: Doesn’t Doctrine ORM 2 have support for working with VIEWS?
I created a View in the database and now I need to use it in the system, but I can not use it, because the Doctrine à recognizes as a table, the following error appears: Type:…
-
-1
votes1
answer191
viewsQ: PHP Unit, run database test, mock test and SQL Lite test all together
It’s the following people, work on a huge system, have projects or mini services within a project that we need to test them using Mock, or using PHP’s database or SQL Lite. The problem is that for…
-
9
votes2
answers745
viewsQ: Problem with str_replace php
str_replace does not compare the whole string, only compares half the string. I have an associative array: $arrayFrutas = [ "banana" => f.banana, "bananaGrande" => f.banana_grande ]; There I…
phpasked Lucas Lima 773 -
0
votes1
answer39
viewsQ: How to use Filters in Doctrine?
I have the Entities that I did in Doctrine, and I also have the DAOS, which is where the. I have an API where the user may or may not use Query Parameters as follows:…
-
1
votes1
answer239
viewsQ: Good Practice in APIS Rest Full with PHP and Doctrine ORM 2
Currently we have a system that uses Doctrine ORM2, we have our Entities, and themes our DAOS, within our DAOS classes we have several methods that we use to make queries, Change, Insert and Delete…
-
2
votes2
answers161
viewsA: I can’t work with Uri(routes) using virtual hosts
What was happening is that I didn’t allow the file. htaccess in the public_html directory override, so I added some settings to my apache virtual host to allow this, see the new virtual host…
-
1
votes2
answers161
viewsQ: I can’t work with Uri(routes) using virtual hosts
I created a virtual host using apache, the problem is that I can access the site on my "localhost" as follows: site.com To access my site on localhost in this way I did the following in the file…
-
0
votes1
answer565
viewsQ: How to instantiate an object in Hooks to use in the Codeigniter Controller?
I have a class that will manage some of my dependencies. I want her to be called before any method be called on the controller, and for that I am using Hooks. The problem is that I don’t know how to…
codeigniterasked Lucas Lima 773 -
3
votes1
answer33
viewsQ: Can I put namespace in old classes?
Good people, I work in a company that has a huge system, and we used the Doctrine to do the Mapping of our tables, however this is very old we used the Doctrine a long time and at the time we had no…
-
1
votes1
answer3769
viewsA: Files do not appear in the Git repository
What happened is this, we have a folder where the files are for example: git api. When we send a project to the server we send it to that folder and it automatically creates a project folder with…
gitanswered Lucas Lima 773 -
2
votes1
answer3769
viewsQ: Files do not appear in the Git repository
I created a new project here and then uploaded it to the server, but when I try to access the repository via URL an Apache page with the name: Index of / site, ie my project folder is empty, but…
gitasked Lucas Lima 773 -
10
votes2
answers1084
viewsQ: How to use Traits in PHP?
I’m creating namespaces for my traits and using them directly, without using them within a specific class, example: NOTE: The code below is just an example. namespace Decrypt; trait Rc4 { public…
-
1
votes2
answers401
viewsQ: Problem with json slim framework
I am making an api to do the integration of two different systems, the system sends me the following json: cJson = [{"TESTE": "1"}] I spent 3 days with a problem because I was not able to catch the…
-
2
votes1
answer645
viewsQ: I have one form inside the other and I can’t get the most internal form
Here’s an example of how the form is, it’s much more complex than that, it’s almost 10 years old and I don’t have time to modify everything. But I need to have access to the form inside the other,…
-
1
votes1
answer174
viewsQ: Problem with history back java script
I have a page, called page 1.php of registration that when you click on a confirm button it takes me to page 2.php, which performs all operations in the bank, but at the end of the page has a code…
javascriptasked Lucas Lima 773 -
0
votes1
answer195
viewsQ: Problems with GIT
I had some modified files in my branch path, but I didn’t update my archive. Good but what happens is that I didn’t do the commit of the archives and I was obliged to give a reset throughout my…
gitasked Lucas Lima 773 -
-2
votes1
answer1460
viewsQ: Grab image from database
wanted to know how I could recover an image from the database, used the php7, the image is recorded in the database in type BLOB, I searched on the internet and were very old examples and none…
-
2
votes1
answer243
viewsQ: Script this considers enter as white space
I made a script to remove blanks from a string inside a TEXTAREA or INPUT, follow the code just below: input = 'input[type="text"]:not(.inputData), textarea'; $(document).on('blur', input,…
-
0
votes2
answers548
viewsA: Jquery Append does not work
Guys I managed to find the problem I think I will open a new question, the problem is in php, json_encode is returning null, I do not know why, I printed the query even before passing json_encode…
-
1
votes2
answers548
viewsQ: Jquery Append does not work
Galera I am making a load on demand use a button that the user click on it loads the data 2 in 2, these data come from the database, but in this code I will post below does not work when I put the .…
-
1
votes1
answer111
viewsQ: Hide only daughter lines
I have a table as follows: <tabele> <thead> <tr>Codigo</tr> </thead> <tbody> <tr class='click-show-hide-tr'>exemplo</tr> <tr…
-
1
votes1
answer44
viewsQ: How to Return Results with Integers and Nulls?
I’m trying to build a Query but they’re not succeeding, in my database I have 28 information with code 32, and 62 information with code 23, but there is information with null code, and I wanted to…