Answer the question
In order to leave comments, you need to log in
How to make php file upload using vue?
Hello
, I decided to try vue after jquery (it's long overdue in 2k18))) but the point is not that it takes me a long time to realize the
point is that the question arose
how to connect vue and php ? that is, after some event, make a request to the database and display it
, this can be done if you file the site api separately from the main page, but it seems to me that this is not the best option, but I need the most effective way to solve this issue (for example, study node js or find a replacement for php)))) or is there an option to send requests from js without ajax a)
Answer the question
In order to leave comments, you need to log in
To exchange information between the front and back without Ajax, there are web sockets. But they are usually used only in realtime applications. In other cases, ajax is a normal solution. Read more about SPA. This is when statics with scripts and styles are immediately sent, and then, as necessary, ajax requests are made to the server and the responses received (usually in json format), the content is parsed based on them.
Laravel is very handy for back-end projects like this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question