PHP
PHP (and related tooling) posts.
September 28, 2021
Eloquent Polymorphic One Of Many
Eloquent in Laravel received a new "one of many" relationship type in Laravel 8.42. Laravel News explains this comparatively recent feature here. It seems like the ideal use case for this is a one...
ReadSeptember 5, 2010
Building a Complete CodeIgniter Application: Part 5
In our last part we built a model class for our users, and laid the groundwork, with libraries for sessions and filters. So here we go with User Authentication the other bit... In order to use our...
ReadSeptember 5, 2010
Building a Complete CodeIgniter Application: Part 4
It's been a very long time since there was a new installment to this tutorial series (Jim from the future: No kidding! I don't know when I wrote this, but the nest date I can find is Sep 2010. I...
ReadOctober 24, 2007
Building a Complete CodeIgniter Application: Part 3
I left you at the end of part 2 with the news that there was a large security hole in the work we'd done so far. Readers who've done a bit of web development in the past should recognise the...
ReadSeptember 23, 2007
Building a Complete CodeIgniter Application: Part 2
This is the second installment in a series called "Building a Complete CodeIgniter application". In this series I'll walk readers through the construction of a complete AJAX application using the...
ReadSeptember 21, 2007
CodeIgniter and External Resources
There's been a couple of posts on the CI forums recently about either controllers running twice or external resources (such as images, css, or javscript) not loading. Whenever I've run into this...
ReadSeptember 10, 2007
Building a Complete CodeIgniter Application
Over the coming weeks/months I'm going to write a series of blog posts describing the construction of a complete AJAX application using the CodeIgniter framework. I've chosen to build a multi-user...
ReadSeptember 10, 2007
Building a Complete CodeIgniter Application: Part 1
Over the coming weeks/months I'm going to write a series of blog posts describing the construction of a complete AJAX application using the CodeIgniter framework. I've chosen to build a multi-user...
ReadSeptember 7, 2007
Thoughts on learning CodeIgniter
Here's how I went about learning CodeIgniter, I hope it's of assistance to anyone else trying to do the same. Firstly, it's difficult to say how long it would take someone to come up to speed with...
ReadSeptember 6, 2007
How I use CodeIgniter's MVC
There's always some discussion in the CodeIgniter community (especially the Forums about the MVC model. Usually these questions are asking about the "right" way to do something, or whether something...
ReadSeptember 5, 2007
Controlling Access to Images
The question was recently asked on the CodeIgniter forums, and I've run into it in various forms over the years, so I thought I'd share my answer here as well. The problem in a nutshell. I want to...
ReadJanuary 14, 2004
PHP Tips and Tricks with Rasmus Lerdorf
After lunch, the next thing on the Linux.Conf.Au agenda for me was Rasmus Lerdorf's "PHP Tips & Tricks" presentation. Rasmus started off with an introduction to where PHP fits in the...
Read