Make your own WordPress MVC Plugin

One issue I have with WordPress is the way it stores all of its pages in the database as posts; this can make it very slow and cumbersome to use more "modern" workflow techniques. Let's make our own MVC framework as a plugin instead.

Read more...

Sorry isn't just what the loser says

Some people feel "sorry" is a sign of weakness & only what the "loser" has to say.

It's what you say when someone is upset with you

Read more...

The end of Mrs and Miss

A very small step you can take to help the cause of Gender Equality

Read more...

A cleaner WP User object

WordPress has a lot of handy functions for managing your User data, but we can do better

Read more...

IS NOT NULL - adding potentially null value columns together

Working with data that may or may not be actually present has always been a pain, no matter what language you are working with. Here's a couple of tricks that will help your queries deal with this issue.

Read more...

ENUM and ORDER BY FIELD - customized sorting in mysql

"...and we'd like the jobs sorted by Started, Pending, Finished, please."

Wait! Don't pull out the CASE WHEN's...there's a better way

Read more...

Interfaces in Codeigniter

The first in a series of "Codeigniter can have Nice Things, too!"

Read more...

Setting environment vars for Codeigniter commandline

Let's take a peek at some of the Codeigniter Core classes to figure out how to set our environment configuration on the commandline

Read more...

Sql puzzle: Returning Customers

"We ran the promotion from Sept 22-28. I'd like to know - which customers came in sometime during the first two weeks of the month, didn't come in at all during the third week, but returned during our promo period."

No problem.

Read more...

Quick Tip: Faker and Laravel Seed Generators

Generating dummy data is no fun, and a waste of your time. So make it quick and easy already!

Read more...

SUBQUERY to find waiting period after multiple occurances

"So, if this is his third attempt, we need him to wait 6 months before he can try again..."

Oh dear!

Read more...

Death to Teaching Cult-Cargo Programming

Who's fault is it if these darn noobs keep asking the same questions over and over?

Read more...

How do I use ajax with Framework X?

Still creating ajax form by copy/pasting the last one and hoping for the best? Let's move past that, shall we?

Read more...

Composer & Symfony & Buzz, Oh, My!

More exciting title than "Creating an extensible API wrapper with Symfony OptionResolver components and the Buzz curl library", which is what this is all about

Read more...

DateTime Magic in PHP

Working with dates in php  has always been a horrible experience of cobbling together "useful" functions from the all over the internet. But really, it can be one of the easiest and - dare I say it - entertaining parts of the language, if you know some magic...

Read more...

Codeigniter with PDO

You've heard of PDO, but Codeigniter already has great drivers, and the pdo stuff all seems so confusing...why bother? Well, let's take a quick look and see how much opens up to us when we take advantage of this native PHP library.

Read more...

Turn your key-value pairs into a pivot table

Learn how to switch your Key-value tables into a pivot table with a single query

Read more...

Mahana Messaging library

A quick tour of the Mahana Messaging Library

Read more...

Using hooks with ion_auth

Hooks are a powerful but not widely understood tool in framework coding. Here's how we can use them to let us customize our authentication process without having to write a lot of new, untested code.

Read more...

Packagist search by tags

A quick tool to allow you to search the packagist site by tags & type in addition to the usual title search

Read more...

Breaking the mold to see the easy solution

A reminder to break your own habits once in a while before saying, "It can't be done" - or face utter embarrassment!

Read more...

Web form security - avoiding common mistakes

Getting your site hacked is no fun. But you might be shocked to learn how easy it is to break in and take over a site - not by cracking the server or sql injection, but by taking advantage of simple but common web form mistakes. Here are some things to look out for.

Read more...

CI _remap function - The Friend you never knew you had

We've all learned the wisdom of using a MY_Controller & subclassing off it to apply rules in one place. But what about when you have rules that need to go on just some of those controller methods?

Read more...

The Naming of Things - writing more dynamic code

How a few minutes thought on what to call things can save you time and effort later.

Read more...

Nested data with Mahana Hierarchy library

Nested data - parent/child records that we'd like to display as a hierarchy - can be a real nightmare. Let me show you an easy way to handle this using the simple Mahana Hierarchy library for CodeIgniter

Read more...