I am trying to integrate Symfony config component and have some trouble getting it to parse required YAML format. I can’t find a way for the Config component to accept simple key => value pairs from the YAML file. My current tree builder for the “limits” section: The yaml tree that I am a…
Function to check user birth date is 18 years or upper not always work correctly
I am beginner webdeveloper. I use in my project Laravel 5.8. I have this this code: It’s work fine. But I have problem with date ex 2045-12-12. This function is not working. With year: 2015-12-12 – it’s okey. How can I repair it? Answer I would write your function to return true or false dep…
How to make custom field text stored in database a link in wordpress frontend [closed]
I am using a WordPress Form Plugin to store data. There’s this text field which I’m using to store links such as http://example.com. I want to make the links clickable and where possible change it …
Problem with link to file, javascript, xml, object FormData
I have a function that allows you to select an attachment, but I can’t get the file paths from it to send it to php. Can it be done without using forms and reloading the entire page? I update my function, but they return: from=s@p.pl&temat=da&msg=da&usser=lalala&file=[object FormData] Wh…
WooCommerce – How to insert icons before delivery method
Good day, Could anyone please help me how to insert icons before delivery method? I use this filter This works normally for local pickup and Zásilkovna, but not for the last two. I found the id I have with them at the value “value” in the input. Would anyone know how to help me? Or how to do this …
How to grab the year from a string with php [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have a couple of strings which look like this: $string1 = ’03 Aug 2…
Is it possible to upload a file to Dropbox without storing it on my server first using PHP?
Currently, I have a PHP app running on Heroku using a Postgresql database. I want my users to be able to upload an image to a folder on my dropbox, and store other information (in this case, product information such as price, title, weight, location of the image on dropbox) on my database. Right now, I’…
PHP Notice: Trying to get property ‘id’ of non-object. How to resolve?
I am using cURL and PHP to make a request to a test API to return a list of users but I get the following error: PHP Notice: Trying to get property ‘id’ of non-object Not sure where I am going wrong. Here is my code Answer you have to loop through the response:
Calculating variable using attribute laravel
I have a simple code where I output the new age of a person. If a person is aged 17, it should output 18. But I’m calculating this on blade (which I think is bad). And I’m trying attribute to handle this, but since I’m very new to Laravel, I don’t know how to handle it. Please help me&…
Checkboxes values
I’m trying to get the values of the checkboxes I check and put them in a php variable, but when I output that value, it gives me zeroes (0). If I check 3 boxes, I get three zeroes, etc. Info: I want every checkbox that is checked, so if cb1 and cb3 are checked, I want the variable to be