Featured Post

[PL] Recenzja książki Zend Framework 2 Application Development, wyda

Recenzja książki Zend Framework 2 Application Development from Packt Publishing Na początku tej recenzji chciałbym zaznaczyć, iż jest to moja druga książka o Zend Framework 2 (ZF2), jaką miałem okazję czytać. Daje mi szerszy obraz na literaturę poświęconą nowej wersji znanego frameworka...

Read More

Integrating FirePHP with Zend Framework 2 using Composer

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 23-03-2013

Tags: , , , , , , ,



If you previously integrated FirePHPCore with Zend Framework using this description just remove require_once(realpath(__DIR__ . ‘/../../vendor/firephp/FirePHPCore/FirePHP.php’)); instance, where you include FirePHP library in global.php

Modifying Composer configuration

Now you need is to update composer.json file as follow:

At the end update your vendor libraries:

Now you should be able to use FirePHP using Zend\Log writer and as standalone \FirePHP::getInstance(true)

And that is all in this topic.

Integrating Zend Framework 2.x with Doctrine 2.x ORM

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 02-03-2013

Tags: , , , , , , ,


Today I would like to present Doctrine 2 ORM integration with Zend Framework 2.
I had some problems with this, so I would like to share the solution for my issues.

Downloading sample project

First of all you need to download example ZF2 project. We have two example projects created by Zend Framework team:

I propose to download first one.
If you downloaded ZIP archive from the GitHub repository, just go to extracted project directory and run command line from that location.

Downloading vendor libraries

Now try to download latest Zend Framework by typing in command line:

You shouldn’t experience any problems in that.

You can get a message from composer, that it is not up to date:

You can upgrade it by typing the command:

Downloading Doctrine 2 ORM

Now we should modify the composer configuration file to be able download latest Doctrine 2 ORM.