Creating a simple UI

We will create a simple UI to deal with our posts. This interface will let us create, retrieve, update, and delete a blog post. You may have already guessed that we will use the Entity Manager to do that.

For concision and to focus on the Doctrine part, this UI will have many drawbacks. It should not be used in any kind of production or public server. The primary concerns are as follows:

  • Not secure at all: Everyone can access everything, as there is no authentication system, no data validation, and no CSRF protection
  • Badly designed: There is no separation of concerns, no use of an MVC-like pattern, no REST architecture, no object-oriented code, and so on.

And of course this will be… graphically minimalistic!

  • Cross Site Request ...

Get Persistence in PHP with Doctrine ORM now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.