Many PHP projects are now starting to use Composer, a tool for dependency management. Here we look at how to create a project using Composer with PHP, including downloading, installing and running composer commands.
To start with, why is Composer used by so many developers? Well, let’s say you have a project that requires you ...
Recent versions of Xcode provide a sleek interface to be able to drag and drop elements onto the view. Some developers may want to learn how to create elements using code in Swift 3 rather than using the interface.
The UIKit provides a library that enables developers to create elements and add them to a ...
Arrays are data structures within programming and can be used to store a collection of elements. Arrays in Swift 3 are no different, however the syntax will vary between programming languages. Here we cover the basics of creating arrays, and adding and removing data from them.
To create an array, for example, an array to ...
When adding elements from the Object Library into your application, you may need to update these elements using code when your application runs. Here we will look at how to change element properties in Swift 3.
In the IBActions article, we looked at how to change a button’s title using setTitle.
UILabel
There are ...
Upgrading Magento 1 systems was a tedious task involving installing a vanilla instance, copying over custom theme and application code and upgrading the database. Upgrading Magento 2 is now a lot simpler with the application code managed by composer.
In the Admin
In the admin area, Magento offers the ability to upgrade the system, located ...
Installing a Marketplace Module in Magento 2 is different to installing an extension in Magento 1. Magento uses a repository where Magento 2 and third party component Composer packages are stored. This repository name is repo.magento.com.
Generate your Access Keys
To provide secure authentication when downloading third party modules, Magento gives you the ability to ...
Deploying static content in Magento 2 is performed via the command line. When running your Magento store in production mode, eventually you will need to run this command.
As we know in production mode, static files are not generated or cached, therefore they must be written to the Magento file system manually.
The below command ...
In Xcode, to connect objects within your view to actual code you can use IBActions. This article will show you how to create IBActions in Swift 3 using Xcode 8.
With IBActions, you can connect actions from your Storyboard back to code within your ViewController.swift class. In this example, you will be shown how to ...
One of the features you can use to manipulate objects within the view are IBOutlets. This article will show you how to create IBOutlets in Swift 3 using Xcode 8.
IBOutlets are properties created within the ViewController class, the class that manages the view, which simply references an object created from the storyboard.
Creating IBOutlets ...
Like most programming languages, Swift comes with the ability to create classes. Here are some examples of basic class syntax in Swift 3.
Definition
To define the class, use the class keyword followed by the name of your class. Classes their entire definition within a pair of curly braces.
class Colour {
}
You ...