
We will explore a bit the PDO Library (Php Data Objects) provided by Php. Context The code base includes the following features : PSR4 autoloading with Composer Typed properties Mysql DB with 2 tables A controller and 2 entities following the tutorial (following the MVC Pattern) A default endpoint (homepage displaying all data from an […]
Yet another example of autoloading classes in a Php environment following the PSR-4 standards introduced by the Php Interopt group. Today we will concentrate more on setting up an autoloader which is widely used accross Php frameworks : The composer autoloader The packagist manager (composer) features an autoloader to let us use any package libraries […]
Let’s produce a docker-compose file to let a full website run from on any of your machines ! Actually more precisely we will prepare a docker compose file so we can test some web resources real quick and not only WordPress, Drupal, Magento… ! Checkout the features covered : Docker Compose Apache Mysql Php Virtualhosts […]
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 […]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

In this article, we will build a simple authentication module with a login form and a small administrative interface. Basically we will work on the userdemo module detailed on GitHub at this url : User Demo Starting from this code we will add a few tweaks to go further with Zend integration, so if you […]