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

Learn Yaml with Doctrine in a Zend 3 project

Yaml

It’s been some time I planed on talking about Yaml and more precisely about its use for Mysql configuration tables and Entity generation. So today we will overview Yaml for Mysql automatic table integration using Doctrine and Zend 3. If you have never heard about Yaml, well you are better late than never ! What […]

Debugging a Php project with NetBeans

NetBeans Xdebug tool

Getting stuck while coding and testing right away happens to any programmers, sometimes looking at the logs is not enough to fix things quickly, that’s when using a debugger becomes really helpful. We are going to integrate XDebug inside our NetBeans configuration so we can debug Php 7 projects. Following is the configuration I will […]

NetBeans IDE and Zend 3

For those who have never heard about NetBeans, no worries, you’ve just missed a powerful tool to work with, depending on the language(s) you employ the most, choosing between IDEs (Integrated Development Environment) might not be easy and once you get used to one in particular then why switching ? There are so many comparison […]

Sign up function on Zend 3

Today we are going to implement a sign up form within our authentication module we’ve set up before. Note that we don’t want to be in competition with Zf Commons with their registration and login module, this article is more like a tutorial to train you on using Zend and handling a form. In later […]

How to make the best Facebook cover photo ?

When starting up with Facebook for online marketing, the first thing to take care of is the Timeline Photo. Top 4 features of a Facebook cover photo Choosing the best cover photo for your facebook page will add value to your business, let me highlight to best strategies to employ : It should reflect your […]

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.