Posts by Luís Alves • 135 points
6 posts
-
0
votes0
answers529
viewsQ: npm | Installation dependency failure
My system: - Windows 10 - Bash on Ubuntu on Windows I’m new to bash usage. I installed nodejs, followed by npm and finally grunt. Everything worked well. I used the grunt no problem, but I started…
-
0
votes0
answers96
viewsQ: PDO execute() with connections does not work
PHP version: 5.6 Framework: Slim Search Engine to bd: PDO I have the following database search: $cIndus = array("ex1", "ex2"); $query = "SELECT `nome_agr_corr` AS `brita`, CASE WHEN ? = 'usd' AND ?…
-
1
votes1
answer249
viewsA: Print a session variable via the Twig engine
I found the answer on this site: https://stackoverflow.com/questions/37643556/set-template-data-globally-in-slim-v3 In my case it sufficed to add the following: $view->offsetSet("session",…
-
0
votes1
answer249
viewsQ: Print a session variable via the Twig engine
I entered a variable in the designated session $_SESSION['ano']. I would like to print your value on a page using Twig. I’ve tried to: {% for ano in app.session %} {{ ano }} {% endfor %} But it…
-
1
votes1
answer572
viewsQ: Set a session variable by clicking a link
I have a dropdown list, which allows you to choose the year that will be used in the database search. I would like the user to select one of these dates, set a session variable with the value of the…
-
1
votes1
answer215
viewsQ: Stretch an element div over the entire length of the table
I have a table with many columns that leave the screen of the screen. Above this table I have a div with a h2. I’m not getting that div expands beyond the screen to cover the entire width of the…