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 […]

Create CMS pages programmatically in Magento2

March 2, 2017 Iyngaran Iyathurai 0

Creating a CMS pages in Magento is simple as navigate to Admin Panel -> CMS -> Pages. But while you developing your extension you might need to create a Magento CMS Page programmatically. Here is the way how you can achieve it:  

That’s it!. Clear cache and upgrade magento.


Magento 2.x. Update/add cms static block programmatically.

March 2, 2017 Iyngaran Iyathurai 1

To update cms static block for particular store programmatically you can use following code.


Magento 2: Add a CMS Static Block via XML Updates in you homepage

March 2, 2017 Iyngaran Iyathurai 0

These are the steps to add a CMS Static block to your homepage using XML Updates in XML files. Go to the Admin Panel > Content > Blocks Click on “Add new Block” Create your custom block, make sure that the option “Enabled” is checked and save it. In the project code, go to app/design/frontend/[VendorName]/[themeName]/ and add the following file app/design/frontend/[VendorName]/[themeName]/Magento_Cms/layout/cms_index_index.xml

 NOTE: You can use “before” or “after” to place the block as you […]