Posts by William • 730 points
74 posts
-
0
votes1
answer353
views -
0
votes1
answer1760
viewsQ: Error "Using $this when not in Object context" in Slim framework
I’m making the following mistake: Fatal error: Using $this when not in Object context in C: Users PC Desktop slim_framework app Controllers Homecontroller.php on line 10 Composer.json { "require": {…
-
0
votes1
answer434
viewsQ: Difficulty generating a JSON object in the correct order
I am trying to generate a JSON object by following this model: { "schemas": [ "urn:ietf:params:scim:schemas:extension:oracle:2.0:OIG:User", "urn:ietf:params:scim:schemas:core:2.0:User",…
-
1
votes1
answer78
views -
1
votes1
answer190
viewsQ: Error writing and reading CSV file
I have the following problem in writing a CSV file. The file appears this way: NULL My class of Archive import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import…
-
0
votes1
answer64
viewsA: error when creating simple like button
Try removing the following lines from the like function: $x = $like + 1; $x = $like - 1; and put this: if($x == 0){ $updd = "UPDATE $tab set likes = likes + 1 where ID = '$id'"; } else { $updd =…
-
3
votes2
answers1634
viewsQ: Image is not displayed when listed on Node Js
I am unable to list the saved images on and Ode with express, when I try to list my View does not display the image. My configuration file: module.exports = function(){ //recuperando a biblioteca do…
-
1
votes1
answer3821
viewsQ: Error "Uncaught Pdoexception: could not find driver" in Wordpress on localhost
I’m trying to put a Wordpress site in Xampp (localhost) but when running it appears the following error: My mistake: https://prnt.sc/gjytdc Fatal error: Uncaught Pdoexception: could not find driver…
-
0
votes1
answer257
viewsQ: Route Error in Vue js
My App.Vue <template> <div id="app"> <router-view></router-view> </div> </template> <script> export default { name: 'app', data () { return { } } }…
-
0
votes1
answer320
viewsQ: Xmlhttprequest cannot load no Vue js
My app.See <template> <div id="app"> <h1>{{ titulo }}</h1> <li v-for="usuario of usuarios"> </li> </div> </template> <script> export default {…
-
0
votes0
answers1665
views -
0
votes2
answers649
viewsA: Error while doing relationship with Lockable
Lacked a "s" in the belongsTo of both models.
-
0
votes2
answers649
viewsQ: Error while doing relationship with Lockable
Call to Undefined method Illuminate Database Query Builder::belongTo() My Models <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Imovel extends Model { //definindo nome…
-
1
votes1
answer2564
viewsQ: Error in Maven POM.XML file
Error cvc-Complex-type.2.4. a: Invalid content was found Starting with element 'dependency'. One of '{"http://maven.apache.org/POM/4.0.0":Parent, "http://maven.apache.org/ POM/4.0.0":name,…
-
0
votes1
answer41
viewsA: How do I get my content behind my popup?
Just change the position:absolute; for position:fixed;, so the class .cover2 which is your modal will occupy the whole screen Follow the modified code body{ padding:0; margin:0; } .container2{…
-
2
votes1
answer1006
viewsQ: Controllers and Routes in Node js
I wonder if it implies any difference between using only routes, or routes with controllers in the Node js, could someone give me some example of how to implement routes and controllers on Node…
-
0
votes0
answers36
viewsQ: Problem with installing Meteor in windows
Mine is a windows 7 and when I install the Content by the installer itself, when I run the Content command this error happens…
-
0
votes1
answer366
viewsQ: How to loop with jquery without duplicates
I wanted to know if you can make a loop inside the other using the function each without duplicating the values Example var cor = ["branco", "preto"]; var exa = ["#FFF" ,"#000"]; $.each(cor,…
-
0
votes0
answers91
viewsQ: Mini Framework Mvc
This is the mistake you are making when I call this method in my controller Warning: end() expects Parameter 1 to be array, null Given in C: xampp htdocs php_mvc Libs System.php on line 55 Warning:…
-
0
votes3
answers85
viewsA: Third IF ELSE
I don’t know if you noticed but in the third ELSE IF the condition is missing another equal sign ( = ) . Try to change and see if it worked.
-
1
votes1
answer324
viewsA: Duplicate items in Foreach
I ended up finding the solution. It was very simple to use for instead of foreach, which is better to control iterations.
-
1
votes1
answer324
viewsQ: Duplicate items in Foreach
I have two Inputs (curso[] and formacao[]) html and when loop with the foreach and starts to duplicate the items that are within the second foreach This is my class class Pessoa { private $Formacao;…
-
0
votes1
answer1684
viewsQ: Making Codefirst Error in Enityframework
That’s the mistake that’s happening: An unhandled Exception of type 'System.Typeinitializationexception' occurred in Entityframework.dll Additional information: O…
-
0
votes1
answer943
viewsQ: Error 400 Bad Request in Google Distance Calculation API
This is the Error that is happening at the time of Sending Requests by url: Warning: file_get_contents(https://maps.googleapis.com/maps/api/distancematrix/json?origins=Av Padres…