Answer the question
In order to leave comments, you need to log in
What is the easiest PHP framework to work with php7?
Something went wrong with my symphony. The problem is that I got into the symphony framework and in order to make, for example, an Ajax request and process the response, I need to do this not through POST, but run through the Request symphony classes. In this task, I didn’t need buns in the form of validation and other things, I just wanted to make a post and get a server response, but I couldn’t do it through Ajax, because Request gives data in a protected form. Maybe I'm doing something wrong? In general, I decided to postpone the study of symphony for another project, but for this one I would like something like CI only for php7. For me, speed and the availability of functions for working with users are important.
Answer the question
In order to leave comments, you need to log in
A small amendment - the response does not give a Request, but a Response.
Most likely you are doing something wrong, because. in fact, you only need to return the serialized data. If I'm not mistaken, Symfony has a built-in Serializer component that can convert data to json format, which you give for AJAX requests.
In general, look in this direction. You can also look for a method that can be used in routing or in a controller to determine whether an AJAX request is asking for data or not.
In general, Symfony is quite difficult at the start. You can start with Laravel. This is a fairly popular framework, fast and easy to understand. The documentation is also up to the mark.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question