How to build a wordpress theme in 5 steps

This tutorial is more like a personal reference of my own to quickly get myself on tracks while building a new WordPress theme. So if you need more details on building up your own theme, then you will have to follow the guildelines on WordPress.org. There is also a nice infographic highlighting the anatomy of […]

Adding array elements into a form using Zend 3

Form collection Zend 3 tutorial

You already know how to add elements to a form and attach filters and validators to them, but often you will need to add new elements dynamically or add several elements with the same name. In HTML it will end up with a name followed by square brackets [] : As an example check out […]

Ajax, Json and autocomplete form input example with Jquery

Autocomplete event - jquery ui example

We have a demo page for this so no worries about it – Today we implement several features to deal with a form input : Autocomplete of the input Ajax call to an external url using JQuery Parsing JSON data from the external url We will follow the tutorial on appending form inputs with Jquery […]

Appending form inputs within a form using Jquery

Append form inputs jquery

Learning by examples is the way we do and as we often ask us about JQuery tutorials, today we are adding a new one which will be followed with further integration such as Ajax calls and API programming. Example of appending form inputs inside a form JQuery offers such a powerful tools’ set, it would […]

One to one relationship using Zend 3 and Doctrine 2

One 2 One relationship

Using Doctrine 2 annotations in a Zend project requires us to design our database model at first then we are integrating ou entities which themselves are instantiated within services. Today we are going to implement a simple example of using a One to one relationship using Doctrine and Zend 3. Example of a One2one relationship […]

On demand doctrine database switch with Zend 3

Configuration sequence - Zend 3

When working on different database with Zend, you may load defined parameters from your local configuration files depending on the action you need to trigger. In the case you need to load a database which is defined by a specific environment for instance from a session data, you need to update your configuration inside your […]

Zend script to create tables on demand

create table on fly with zend 3

When you are working on a large project like a CMS system, you provide different kind of modules and you allow the end user to enable or disable certain modules depending on his needs. There are different way of achieving this : You create the whole database with all tables in it, giving the possibility […]

Creating a Database using Zend 3 and Doctrine2

Database creation - Doctrine & ZF3

Let’s say we need to create a database on the fly and use it within our Zend 3 project. Typically you will create the database then store the credentials within your global or local php config file in your autoload directory. But this time we do need to create a second database which name depends […]

Adding Session Data to your authentication system using ZF 3

Session Management in Zend 3

If you have been following the tutorial on ZF3 authentication, you already have the user email stored in session as this is the default behavior of the Zend/Authentication module provided by Zend platform. The Zend authentication module & session management We will overview a little how is handled the session system within the authentication module […]

RuntimeException: Module could not be initialized in ModuleManager

Composer json edition

When adding a new module manually in Zend 3 platform, you basically add files within a defined folder structure of your own (you can just copy a skeleton application and rename the directory). See the tutorial on Zend 3 project for more details. Once you have added the files you will generally meet a few […]

Class is not a valid entity or mapped super class – ZF3

Doctrine Exception

As a way to help others and myself, I will continue to post Zend3 typical errors and their fix regularly. To reproduce the following error : “Class is not a valid entity or mapped super class” using ZF3 and Doctrine 2″ I’ve used the Yaml driver as described in this page, then switched back to […]

Set up HTTP2 on Apache Virtualhosts

HTTP2 on Apache2

Follow these simple steps in order to implement the HTTP2 protocol for your websites : issue the command as root : # a2enmod http2 Apply changes by restarting Apache2 : # systemctl restart apache2 Add the following line in your virtualhost configuration file ie : linkstraffic.net.conf Reload the configuration with : # systemctl reload apache2 […]

Adding custom menu item inside Magento2

Adding custom menu links

From what we’ve introduced while talking about adding a footer link to our Magento2 store, we will dig a little further so anyone can understand more precisely how to deal with layouts & templates using Magento 2. Of course we strongly advice you to read all the details covered on the dev doc of Magento […]

New Magento 2 install is terribly slow

Real Slow Magento2 install

There are a lot complains on the Internet about the loading time of a Magento 2 website, some people have even been switching to another CMS ! Here at Linkstraffic we like to analyse what’s behind the scene and how could a new Magento 2 install could generate such performance issue. First thing to say, […]

Add Links to Magento 2 Luma theme Footer

Add footer links - Magento2

The default footer that comes with Luma theme is the following : Using the admin interface, you may enable/disable some links but for a full customization, there is work to achieve. You can refer to Magento2 dev documentation for more information, here we will focus on a simple and efficient method to add a link¬† […]

Bulk prices update of Magento2 products using Mysql

Sometimes, you need to update a whole list of products at once and to achieve this in Magento 2, you can come up with the following ideas : using a module, exporting/importing updated products, any manual method hitting through the right Mysql tables Now depending on your skills, you might choose one option over another […]

How to set up Files Permissions the right way on a Web Server

ACL permissions settings

Working with different CMS and multiple users requires the server to be set up properly or you might end up with security leaks. I won’t cover the whole settings for your entire server but only the access to your web pages via SFTP (I definitively not recommend the use of FTP). Generally speaking of web […]

Adding Custom CSS style to Magento 2 Theme

Magento2 CSS import Theme

How to quickly apply a new CSS stylesheet to a custome Magento 2 theme by extending a layout from a default parent theme. A basic tutorial with code snippets to learn the best way to achieve this on your website.

Nested CSS Responsive Text on Wide image & 3 columns

Text Box on Banner

Today we are back to CSS design and we are going to implement a simple page with a wide banner on which we apply a static text box. Below the banner will be placed 3 square boxes of same size. On smaller devices, boxes will take the full screen width and text will be centered, […]

Populate Database using Doctrine and Zend 3

Zend 3 DataFixtures Doctrine

Some applications need to integrate data and using Zend and Doctrine all together requires us to do it properly. Of course you could simply insert your entries inside the database using the Mysql command line which is pretty straight forward but how about the case you need to automate the process with a different database, […]

Want more information?

Related links will be displayed here in this section for you to pick up another good spot to get more details about Web marketing and Search Engine Optimization. There will be some sites which we selected to ease the work of any webmaster or/and web marketer on the Internet.