Posts by Mauricio Cantú • 96 points
5 posts
-
2
votes1
answer34
viewsA: switch case does not run
You need to put the $screen variable between keys. Use the following code: <?php include_once("../views/{$tela}");?>. And another, the passage $tela = "perfil.php"; within the "profile" case…
phpanswered Mauricio Cantú 96 -
1
votes3
answers616
viewsA: First leave selected select item
Try with the code below. The idea is to check if the item index is 0. If it is, mark the option as Selected. <select v-model="cursos" id="cursos" class="form-control" name="cursos"> <option…
-
2
votes2
answers147
viewsA: onChange texfield javascript
Your jQuery selector is wrong. A "#" is missing before the input ID. With the following code it will work. $("#idNewClient").change(function() { console.log("teste"); }); <script…
javascriptanswered Mauricio Cantú 96 -
2
votes1
answer74
viewsA: About Vue project in a specific folder consuming Laravel data via Restfull API
Good afternoon! It is possible yes. In the Laravel Routes/api.php file you can define the routes and their respective functions. Then just in your Vue project order those Urls you set to consume and…
-
1
votes1
answer235
viewsA: PHP Laravel Blade {{{ $name or 'Default' }}} Printing 1
Try to use {{ $name or 'Default' }} (with only two keys). Apparently the way your code is, the value returned is the logical value of the expression "$name or 'Default'", which in this case returns…