1 – Setting up ZF2 development environment

The assumption is you have some programming experience and a moderate familiarity with concepts such as MVC and seperation of concerns.

With this assumption comes the expectation you have a local development environment setup with at least PHP 5.5 on an Apache2 server and a MySQL server.

Continue reading “1 – Setting up ZF2 development environment”

Zend Framework 2 + Doctrine 2 – Blog tutorial

A work along tutorial on how to integrate Doctrine2 into Zend Framework 2.

A step by step work-along tutorial on how to create your first Zend Framework 2 + Doctrine 2 blog. Most of the things used are explained in depth.

If you find yourself with questions at the end of a chapter, or after finishing the tutorial, please reach out and I might be able to help you or point you in the right direction.

Table of Contents

  1. Setup environment
  2. Setup Doctrine
  3. Configure module
  4. Create Entity
  5. Create index
  6. Link module
  7. View single Post
  8. Setup add Post
  9. Create form
  10. Create input filter
  11. Add Post
  12. Edit Post
  13. Delete Post
  14. Finish

Deprecation notice

Please note: this tutorial has been online a while and is no longer actively maintained/updated as it was created for Zend Framework 2. This tutorial has been online since mid 2016. The framework has since had major updates and upgrades. Even though many of the principles have stayed the same throughout the newer versions of Zend Framework, a lot of the supporting code has been upgraded. As such differences are too big to update all of the code of all tutorials.