Archive for October, 2009

CodeIgniter and Doctrine from scratch
Day 2 – The Basics

codeigniter_doctrineIn this episode:

- We do a quick fresh install of CodeIgniter and Doctrine, without going into details like last episode.
- Briefly go over some of the basic concepts of CodeIgniter and Doctrine.
- First we will review Controllers and Views in CodeIgniter.
- Then we will move on to Models using Doctrine. This is where things are going to get a little different, compared to other CodeIgniter tutorials out there.
- Finally we will preview a sample Doctrine Model and talk about what our main project is going to be.

Tags: , ,

PHP Method Chaining, plus Magic Setters
(similar to jQuery)

php-method-chaining-1

Quick Disclaimer: Even if you know about PHP5 Method Chaining, don’t skip this article, because we will explore more than just that.

If you’re familiar with jQuery, you might know how it let’s you write short and clean code with the help of method chaining.

Not only will I show you how to accomplish this in PHP5, but I will also combine this feature with magic setter methods with the help of method overloading to make it even nicer.

It’s OK if you don’t know any of these terms. You should still be able to become familiarized with them by reading this article.

Tags: , ,

CodeIgniter and Doctrine from scratch
Day 1 – Install and Setup

codeigniter_doctrineBeing inspired by the wonderful series of articles/screencasts on the nettuts website called CodeIgniter From Scratch I decided to write my own series on using CodeIgniter and Doctrine together to build a functional website in a series of tutorials.

In this first part of series, I will show you how to create a basic CodeIgniter install and add Doctrine as a plug-in.

Tags: ,

CodeIgniter with Doctrine sample code [5 min. screencast]

codeigniter_doctrineIn this video, I show some sample code I wrote in a fresh install of CodeIgniter and Doctrine. It’s very easy to use once you get familiar with it. This will allow you to avoid writing repetetive CRUD functionality in all of your CodeIgniter models.
Later I will post an article showing how to install Doctrine into your CodeIgniter setup.

Tags: , ,