J
J
Jedi2018-08-08 09:56:09
React
Jedi, 2018-08-08 09:56:09

How is the integration between React and PHP application (Phalcon)?

I am currently writing the front-end part of the application in React (create-react-app). Then I plan to somehow connect it to the API, which is in PHP, namely, I use Phalcon as a framework.
You know, I'm somehow already lost... I don't fully understand how the integration between these technologies takes place, if you can call them that.
Where can I read more about this?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-08-08
@PHPjedi

Here you need to look for questions on the toaster, it often happens, but the search here is not the most suitable.
In fact, your backend is an API, you can make requests to it, for example GET to login (pass email + password) => get the user object if successful.
And so everything else, for example GET news -> get a list of news, and on the client you already draw a template with react. That is, PHP templating is not used at all, only for the API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question