…to be safely navigated for all users. This includes the guideline that your entire website should be accessible by using the keyboard alone. Furthermore, the way your website responds to user input (by keyboard or otherwise) should be predictable, clear and safe. This last point refers chiefly to ensuring that…
…To recap the concepts outlined in the video, note that:We covered the concept of variable scope. Specifically, we talked about the following two items:Global Scope is a variable with global scope is accessible everywhere.Local Scope is a variable with local scope is accessible only within a function body.In SummaryClosure is…
…torial: Introduction to the Yii Framework, which reviews the benefits of Yii and includes an overview of what's new in Yii 2.0, released in October 2014.In this Programming With Yii2 series, I'm guiding readers in use of the newly upgraded Yii2 Framework for PHP. In this tutorial, I'm going to…
…tor allows us to simplify some PHP conditional statements. We'll see how it can be used, with test-driven development and refactoring, to simplify code like:<?php $result = null; if (5>3) { $result = "Bigger"; } else { $result = "Less"; }Written using a ternary operator, we can write the above…
…to check out the previous parts if you haven't yet. Let's begin! 27. Checking Whether the Page Is a "Monthly Archives" Page: is_month() In WordPress, the most commonly used date-based archive type is probably the monthly archives. When you need to detect whether your code is running in a monthly…
…to differentiate between the sections of their site. Often this takes the form of different colors for each section.A good example is the London Times website, which uses a different color for each section of its site. The front page uses these colors in a banner above each post, as…
…to the reading level of the content, and the use of unusual words, abbreviations and acronyms, none of which are relevant to developers. One recommendation we can implement is that the human language of the web page should be able to be programmatically identified. To achieve this, the language should…
…to the blog system. A natural extension would be to enable users to change and delete existing blogs. In this session, we are going to build some groundwork for those functions, making a list view of blogs in the admin page and adding a router (if you don't know what…
…torial series, we'll see how to go about creating a simple shopping cart using AngularJS. This tutorial series will focus on the use of AngularJS directives. AngularJS directives are the core part of AngularJS and they impart special behavior to the HTML. From the official docs:At a high level, directives…
…torial series, we implemented the edit and delete post functionality in the welcome page. In this part of the tutorial, we'll add a Ladda loading indicator into our application. Adding a loading indicator is quite essential as it makes the application more interactive. We'll also fix a couple of minor…