How to integrate Sendgrid with Zend framework

March 18, 2019 Iyngaran Iyathurai 0

Install send-grid transport using the following command. After install follow one of these steps: Copy the contents file vendor/iyngaran/send-grid-transport/ and put it in your config/autoload/ If this file does not exists in your application, just copy the entire file and place into your config/autoload removing the .dist extension. Then add your SendGrid API Key. To get your API Key, please visit And also add the test email from-email address, name and to-email address, name. After all, you must register SendGridTransport module in your config/modules.config.php. […]

Build Multi-lingual application with the Zend Framework

October 21, 2017 Iyngaran Iyathurai 0

We can not imagine a modern web application without a multi language support. I will show you how easy it is to setup usage of multiple languages in Zend Framework and how to setup some basic language routes (handy for SEO stuff). The Zend Framework offers many ways for you to store your translated strings. It could be an array, a CSV or XML file or you could use gettext which we will be using […]

Zend Framework 2 : Get Server URL in Controller

December 11, 2013 Iyngaran Iyathurai 0

Sometimes you need to be able to get current server URL inside controller in your Zend Framework 2 application. As you might know, you won’t be able to use $this->serverUrl() or $this->baseUrl() method in the controller as it’s a part of helper. So, here is the code that I am using to get server URL in controller :