Posts

Zend PHP 7 Certification – Basics – Configuration

This post covers the Configuration section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Configuration files establish the initial settings for applications, as well as servers and operating systems. For PHP, configuration resides in the php.ini file.
php.ini is read when PHP starts up. For the server module versions of ...

Zend PHP 7 Certification – Basics – Extensions

This post covers the Extensions section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
The most common way for PHP extensions to be loaded is through the php.ini configuration file.
Usually on UNIX based servers, there may be more than one php.ini files on a server. Therefore, to find out ...

Zend PHP 7 Certification – Basics – Namespaces

This post covers the Namespaces section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Namespaces are a method of grouping related PHP code elements within a library or application.
Namespaces are use to solve a couple of problems including naming collisions, which most likely occur when code from multiple people ...

Creating Custom Email Templates in Magento 2

Magento comes with a predefined set of email templates that a merchant can use to send emails, such as transactional and customer account related emails to customers. Creating Custom Email Templates in Magento 2 requires configuration and customisations made in a module.
Presuming you have already created the relevant module structure by creating a Magento ...

Zend PHP 7 Certification – Basics – Language Constructs

This post covers the Language Constructs section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Language constructs are hard coded into the PHP language. Most of the constructs have unique behaviour, in that they can almost bypass some kind of error handling mechanism.
For instance, isset() can be used ...

Changing Grid Column Sort Order in Magento 2

When you add a UI component based grid, Magento will remember the positions of the columns when you next log in, even if you don’t specify a sort order. When you want to go about changing grid column sort order in Magento 2, it may not be as simple as you think.
Imagine that within ...

Zend PHP 7 Certification – Basics – Control Structures

This post covers the Variables section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Control structures are a fundamental feature in programming. They allow a script to react differently depending on what has already occurred or based on user input.
We can break down control structures into two different sections: ...

Zend PHP 7 Certification – PHP Basics – Variables

This post covers the Variables section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
In PHP, variables are represented by a dollar sign, $, followed by the name of the variable.
$foo = 'bar';
They can contain letters, numbers and underscores, although must not start with a number.
By convention, ...

Zend PHP 7 Certification – PHP Basics – Constants

This post covers the Operators section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
A constant is an identifier given for a simple value. The value for non-magic constants cannot change during the execution of the script.
The naming convention of a constant follows the same rules as labelling a ...

Zend PHP 7 Certification – PHP Basics – Operators

This post covers the Operators section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
The several types of operators covered are operators commonly used in programming: Arithmetic, Bitwise, Assignment, Comparison, String, Array, Logical, Type and Execution.
Arithmetic Operators
Like with most programming languages, the basic arithmetic operators are represented by ...