In a very old post I told you how to get the route name in custom view helper with zf2 – Zend Framework 2. In this post I used the ServiceLocator, a thing which was some kind of deprecated in later versions of zf2. It is bad practice to use such a construct like the getServiceLocator method, because e.g. applications …
Doctrine with zf3 cache
That’s the way how to use Zend Cache with Doctrine in Zend Framework 3. First do all doctrine settings and define a cache in your global.php: ‘doctrine’ => [ ‘connection’ => [ // default connection name ‘orm_default’ => [ ‘driverClass’ => ‘Doctrine\DBAL\Driver\PDOMySql\Driver’, ‘params’ => [ ‘host’ => ‘localhost’, ‘port’ => 3306, ‘user’ => ‘xxx’, ‘password’ => ‘xxx’, ‘dbname’ => ‘xxx’, …