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 Forgery (CSRF): http://en.wikipedia.org/wiki/Cross-site_request_forgery
Separation of concerns: http://en.wikipedia.org/wiki/Separation_of_concerns
Model-View-Controller (MVC) meta-pattern: http://en.wikipedia.org/wiki/Model-view-controller
Representational...