Summary

Wow! It was a long trip, congratulations!

In this chapter we covered all the basics on both the API and frontend sides.

We saw the components involved in the database access and the possibilities ZF2 gives us, how to work with the database, and how to retrieve information based on the parameters we have. We saw how to create a module from scratch and how to configure it, create the routes, and process the information to output it as JSON or HTML. We also covered how to encode and decode JSON data and how to make a simple request to our API. We also worked with the two types of controllers provided by ZF2: AbstractRestfulController and AbtractActionController. Finally, we saw how to populate entities using hydrators.

Now we have the base from which to continue working on the social network. We will keep improving its functionality and the quality of the code performing some refactors along the way to keep it simple and maintainable. The next chapters will cover different aspects of the framework while adding more code, more functionality, and more fun!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.114.38