Posts by 1001Songs Clips • 197 points
13 posts
-
-2
votes1
answer96
viewsQ: Node.js with Vue.js
Node and vuejs can complement each other ? It is normal to use vuejs, Node.js and espressJS together ? In my view are 3 different frameworks, but it makes sense to use them together ?
-
0
votes2
answers286
viewsQ: Dynamic URL in the Laravel
I’m working on a website project for writers. In this project there are 12 genres within the table "categories", for example: Poems, Acrostics, Chronicles, etc. I’m having trouble creating the…
-
-1
votes1
answer17
viewsQ: How to generate dynamic urls
I’m working on a project for writers to publish poems and poetry. Urls will be separated by gender, for example: site.com/poems/field flowers/ However, I need to avoid double titles. Because of this…
-
0
votes1
answer23
viewsQ: Store two names in the same column
I’m in doubt about best practice to create a certain table. I have the table "Texts": My problem is with the column "authorship". Because the authorship has 3 options see: If the user selects the…
-
2
votes1
answer774
viewsQ: Take column name with foreign key
I have a product table that refers to id table categories, but do not want to take the number id of the foreign table, and yes the name of this reference. My controller is like this: public function…
-
1
votes1
answer291
viewsQ: Is the ALT attribute inside the SPAN tag valid?
bought a wordpress template that inserts the highlighted image of this almond tree: <span class="fullimage cover" role="img" alt="O que significa sonhar com abacaxi" aria-label="O que significa…
-
6
votes4
answers324
viewsQ: Interpretation of loop of repetition
I’m having trouble understanding the following code that is presented as a book exercise. $a = true; $b = -2; $c = 7; for ( ; $b < $c || $a; $b++){ if ($c + $b * 2 > 20) $a = false; echo $b."…
-
0
votes0
answers38
viewsQ: Display php chart in columns
I created a php test that is working properly. But I have a small problem, because the test is composed of 128 questions which are divided into 7 groups. But the number of questions in each group is…
phpasked 1001Songs Clips 197 -
0
votes1
answer37
viewsQ: Best method for uploading images
I have an AMP page that I load the logo image by inserting the link inside the img tag, so: <amp-img src="//i2.wp.com/www.meusite.com.br/wp-content/uploads/lgootipo.png" alt="logotipo"…
-
2
votes1
answer397
viewsQ: Prevent plugin update in Wordpress
Hello. I need to prevent an update plugin. I thought of simply cloning the plugin and change the following information: /** * Plugin Name: AMP * Description: Add AMP support to your WordPress site.…
-
5
votes2
answers908
viewsQ: What is the real PHP interface utility?
I know what interface is used as a common pattern. But it doesn’t seem useful. Because what good it is to create an interface that only has the name of the methods? I have to encode each of them in…
-
1
votes1
answer165
viewsQ: Request $request in object-oriented PHP
I’m doing some PHP OO exercises and came across some functions that call a class before the variable. But I didn’t really understand why. For example: public function Exemplo(Request $request,…
-
-1
votes1
answer117
viewsA: Child element behind father
Place the attribute: z-index: -1; in the child element. This will leave you behind the parent element