Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I would like to now if there is a way to store in my database somes values displayed on twig ? the values was calculated with javascript/jason, and i dont want to do the same script on symfony or php ...
Thank you !
Like any other interaction with the client you must :
send a request to your symfony application
make a controller that can work on this request
make this controller store the data you sent within the request
For that two possibilities :
Use XHR to let Javascript send this request
Use javascript to fill a HTML form and let the user submit this form
Related
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 3 years ago.
Improve this question
I configured authentication using Angular and PHP.
But if page is reloaded - user have to enter login and password again.
Because after reloading - angular's variable "IsLoggedIn" is set to false.
Is there a way how to pass session data from php side to angular without additional ajax request to server?
Because firstly php framework is loaded and then it shows a view with html and angular scripts.
you can do it by jwt or any other token base authentication.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm new to Laravel, I want to update the interface every time there is a change in the database but I think calling a JavaScript every 5s to update the interface is not very efficient, so I wonder what is the most efficient way to do that?
Have you considered using some for of websocket to create a connection between your backend and JavaScript based UI?
Either https://laravel.com/docs/master/broadcasting or https://github.com/beyondcode/laravel-websockets would allow you to notify your UI to request the updates from your Laravel backend.
My personal suggestion would be that you JS would receive a notification that something had changed and then have to obtain the updated information via Ajax so that you are not sending confidential information through Pusher's servers.
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 5 years ago.
Improve this question
I need to give client to a print a receipt through my website directly. I know we can not do it via php because it is a serverside language. I have tried do it by using WebClientPrint.php. But I was unable to implement it. I need to know is it possible to implement such option in CodeIgniter
You need to use js for printing:
var w = window.open('files/invoices/invoice.html','name','width=800,height=500');
w.onload = w.print;
w.focus();
If you need to generate the file then use ajax to do that & then use the file path to print using above js functions.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How i show data postet in another website to mysql database, in real time on main page of website using PHP and that any new data is displayed in a new line.
Datas that i need show are: name, and finish time (from race).
Use .setTimeout() JS method on main page of website and do jQuery.ajax() requests to your server to update data.
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 7 years ago.
Improve this question
My client wants to collect personal information through email but not have that info saved on the database. I'm using the Wordpress Gravity Forms plugin. Is there a way to have that info sent out through the email notification like normal, but then clear out the data before saving the entry to the database? Or at the very least, could that data be replaced with alternate content? Thanks!
You will need to learn Gravity Forms a bit, but one possible way to accomplish this is to use the hook: gform_after_submission. You can add a form ID to the hook name if you are targeting a particular form.
In your function, you can remove the field(s) that you don't want to keep in the database.
For more info on the after submission hook:
http://www.gravityhelp.com/documentation/page/Gform_after_submission
For info on all hooks available to you:
http://www.gravityhelp.com/documentation/page/Developer_Docs#Hooks_and_Filters