[recent_post_slider design="design-2" limit="12" category="17,15,5,22"]
Development
Kenn

PHP and Variable Types

We’ve all heard that PHP is “weak” or “loosely” typed, meaning that it doesn’t require you to explicitly specify the type of a variable. This makes programming easier/quicker but it can bite back.

Read More »
Development
Kenn

Using Composer and Namespaces in PHP

Pretty much everyone who develops with PHP uses Composer, and if you’ve every used a PHP framework, you’ve seen the namespaces at the tops of files. I knew how to use these things but I didn’t really understand them until I embarked on a few just-for-learning side projects that I started from scratch.

Read More »
Meta
Kenn

Yup, it’s a bit of a mess.

I was tooling around the site earlier and I noticed some missing images from a post. What you don’t see from the front end is that there are dozens of unpublished posts that I didn’t republish after rebuilding the site because of said missing images. Rather than dig up the past (we’re techies, not archeologists!) we’re going to focus on making new content instead.

Read More »
Development
Kenn

How to Handle Plugin Dependency in WordPress

Have you ever written plugin code in WordPress that was dependent on another plugin to run? If your code tries to execute before the plugin you require has loaded, obviously, it won’t work. There’s a very simple way to make sure that your plugin doesn’t run until it’s ready.

Read More »
Laravel
Kenn

LAMPStack Laravel

I’ve known about Laravel since I first started investigating PHP frameworks years ago. At the time, I didn’t feel that it was the best choice for the site I was managing. But it has continued to grow and, today, it’s far and away the leading PHP framework. We stilll don’t get to use it a lot (being mostly WordPress people) but it’s impressive on many levels.

Read More »
Photo by Annie Spratt on Unsplash
CakePHP
Kenn

Custom Pagination in CakePHP 4

CakePHP 4 uses the Milligram CSS framework. Even though freshly-baked CakePHP looks really nice with Milligram, you might want to change the look and feel of the default pagination. In this post we’ll go over how to get the pagination to match your scheme.

Read More »