Kohana 3 Routing – Part 2: Dynamic Routes and Default Values

Part 1 | Part 2

In Part 1 of these articles we learned to created a simple static route in Kohana. In this part we’ll build on the basic routing to make parameters passed in the URL available to the action function.

Basic Parameters

Passing parameters into kohana from the URL is a fairly straightforward . . . → Read More: Kohana 3 Routing – Part 2: Dynamic Routes and Default Values

Kohana 3 Routing – Part 1: Static routes and Subdirectories

Part 1 | Part 2

The complexity of Kohana routing is really not as daunting as it first appears–especially if you’ve the leisure to browse the cleanly written, well organized code. However, for those who lack the time (or desire) to parse libraries, Kohana can present some stumbling blocks to a newbie early on the . . . → Read More: Kohana 3 Routing – Part 1: Static routes and Subdirectories

PDO with MySQL DB Usage Example

Overview of Examples

This is just a quick example on using PDO for connecting to a MySQL DB in your PHP code. There are just a few high level reasons why I recommend using PDO, which I’ll go into detail in later post, but for now at a high level PDO:

Encourages use good Object Oriented programming
Provides . . . → Read More: PDO with MySQL DB Usage Example

Configuring PHP on OS X Leopard: the Gritty Details (Part 2)

This is the second part of a series which reviews in-depth the process of building a PHP environment on OS X Leopard.  Please read Part 1 of this series before continuing.

A Little about PHP
Before building anything new, let’s look at what we already have.  OS X Leopard comes with PHP already installed as both the command line executable (from now on referred to as CLI) and as an Apache shared module.  

The PHP CLI and the Apache module of PHP are completely separate versions of PHP. 

Neither requires the other to function. You can generate one and not the other or both at the same time.  The reasons behind the two seperate versions is simple: Continue reading Configuring PHP on OS X Leopard: the Gritty Details (Part 2)