Posts by Edinaldo Ribeiro • 347 points
11 posts
-
0
votes1
answer44
viewsQ: Eloquent returning JSON as variable
I have mounted the following query inside my controller: public function __construct() { $informations = Informations::get()->first(); View::share( 'informations', $informations ); } The idea is…
-
0
votes1
answer176
viewsA: Recover instantiated object in another file in PHP
I was able to solve by creating a Return within my function databaseStartConnection() and recovering its value within the mo my file functions.php, as can be seen in the following code. Function…
-
0
votes1
answer176
viewsQ: Recover instantiated object in another file in PHP
Quick question: how to recover the instance of an object created in a different file in a PHP application? Full question: I am creating a project for PHP studies where I have the file conn.php which…
-
1
votes1
answer277
viewsA: Plugin generated invalid XXX characters during activation
I managed to solve the problem the next day with a fresh head, rsss.. I’ll leave the solution, maybe I can help someone in the future. The error was in SQL Statement within the function…
-
0
votes1
answer277
viewsQ: Plugin generated invalid XXX characters during activation
I am studying creating plugins for Wordpress and as an initial part of my studies is to create a plugin administration of school newsletters of students of a fictitious school. I need to create some…
-
0
votes0
answers42
viewsQ: Removing Woocommerce hook functions
I have this code in my file template-homepage.php <?php /** * Functions hooked in to homepage action * * @hooked storefront_homepage_content - 10 * @hooked storefront_product_categories - 20 *…
-
1
votes1
answer153
viewsQ: Insert with three tables in Mysql with PHP
For study and testing purposes, I created three tables in phpMyAdmin: People, Contact, Credentiallogin. Contact and Credentiallogin tables are related to People. The goal is to perform the insertion…
-
8
votes2
answers12531
viewsQ: Check for special characters in a string using Regexp
I need to validate a password field that must contain at least one special character. Is there any Regexp expression to do this check? E.g. var patt = [a-z]; // verifica a existência de letras…
-
1
votes1
answer1077
viewsQ: How to recover the values of an HTML form for a Javascript function
I have a page with a form made with Bootstrap and would need to recover the data submitted to a Javascript file external to HTML. My main goal would be to retrieve the password field to make…
-
3
votes4
answers4102
viewsQ: How to return the values of a List<> in C#
I have a class Funcionario which has as attributes: CPF, Nome and Salario. I have to create an X amount of instances of this class in a List<> and after that, return to the user the values of…
-
8
votes3
answers440
viewsQ: Get the elements around a selected in the matrix
The idea is to create an integer array with the amount of user-defined rows and columns. Then an existing value in the matrix must be informed and the program must return the values immediately to…