Skip to content

Tag: php

Custom Twig filter from bundle: Unable to load the runtime

I’ve a small twig custom filter in my project created following https://symfony.com/doc/current/templating/twig_extension.html . As long as it sits in src/Twig, it works as expected. Now I’m trying to move it to a custom bundle (vendor/turbolabit/tli-base-bundle/src/Twig/) to make it reusable. I m…

PHP Multiple variables in hyperlink

I want to add “max=<?php echo $row_select[‘max_price’] in hyperlink below, so that when the link’s clicked, I can get both min and max price. Please advise how should the code be. Thank you. Code in page 1 In page 2, my code to get min_price is as follows. It works. But I need to br…

unable to display session variables in a non-auth application

I’m trying to store and retrieve form data in laravel session. My app is non-auth, meaning users are not required to register, hence no authentication. After attempting to store form data in session, when I try to output it says: “Trying to get property ‘name’ of non-object” Why …

default values in input form Modal

I just created a datatable collecting the values ​​from a wordpress database.- These values ​​must be loaded in a contact form within a modal. I am calling the modal from a button in the last column of each row of the datatable. I must predetermine the values ​​of the form fields with the information correspo…