I'm creating an autocomplete to use on my system and I'm using Twig ...
My script is very simple and with some searches on the internet, that's what I got to get:
<script type="text/javascript">
var nomes = {{ usuarios | json_enco...
In the application, there is a menu that is represented in PHP in the form of an array:
$menu = [
["title" => "Home", "path" => "/home", "children" => []],
["title" => "Secção", "path" => "/seccao", "children" => [...
I have some fields that use Select2 to do a basic CRUD, but querying some fields from another base. The question is, when I click refresh, I put all the values in the table (dataTables) in an array, and then when I go to Select2, it does not dis...
I'm doing a pixel code in twig on Xtech, but the code gives an error. (It takes all the information right, but it does not work correctly.)
I use the Google Chrome plugin called Facebook Pixel Helper from Facebook.
I wanted you to help me...
I'm developing a simple website , with Slim Framework and Twig for engine , only returning error in the browser, this is the content of my file index.php (in the project root):
require_once './vendor/autoload.php';
// Create contai...
I use CMS Bolt and it uses Twig , template engine. I need to access the content created on a page above where CMS is running.
Ex: Bolt installed in the blog folder; page to access and display the
content is in the tes...
I have this condition to show the notification when the expiration date is missing 30 days, but it is not doing what I want. Anyone have a better idea?
{% if entity.isExpired %}
strong>Alerta!</strong>O produto com o código...
I have a field in my table that writes HTML-formatted text correctly. When I am trying to display it on the screen, via TWIG using the RAW filter, it continues to be displayed as text and not HTML p>
I noticed that TWIG is putting a quo...
I'm updating a site that is using twig, I need to simply put a shortcode, but the solution I have is not working, could anyone give me a light?
the twig code I tried was:
<div>{{post.custom_shortcode_field('[wdi_feed id="1"]')}}</div&...
I entered a variable in the session named $_SESSION['ano'] . I would like to print your value on a page using twig.
I've tried:
{% for ano in app.session %}
{{ ano }}
{% endfor %}
But it does not work. How can I do it? The fr...