Featured Post

Browse Internet with pleasure

We live in freedom time. Most people spend their lives in free coutries, they can make free choices, do just what they want. The same should be with Internet browsing. We can choose our favourite browser and view webpages we like. The problem is that me and probably most of you had some bad experiences...

Read More

Issues with translation related to Zend Framework 2.2 upgrade

Posted by evolic | Posted in No category | Posted on 04-08-2013

Tags: , , , ,

0

Hi there,

This time I will take a look at recent issue I met during the upgrade of Zend Framework 2.

There is a note at the website http://framework.zend.com/manual/2.2/en/modules/zend.validator.html as follow:

A new service has also been registered with the MVC, MvcTranslator, which will return this specialized, bridge instance.

Most users should see no issues, as Zend\Validator\ValidatorPluginManager has been modified to use the MvcTranslator service internally, which is how most developers were getting the translator instance into validators in the first place. You will only need to change code if you were manually injecting the instance previously.

Overview

It seems I am not listed in the group of most users, because after updating Zend Framework 2 to version 2.2.x using Composer I noticed that my application won’t translate to specified language.

MvcTranslator was introduced in Zend Framework 2.2 as internal class used to translate text in the MVC architecture. As mentioned before users shouldn’t noticed it’s occurrence but in my case it was not so easy.

It took me a while to investigate the problem and I eventually made it.

Integrating FirePHP with Zend Framework 2 using Composer

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

Tags: , , , , , , ,

0

Introduction

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.