Archive for the 'Object Oriented PHP' Category

Note to CodeIgniter nerds: please, no looping code in your views.

Thursday, June 5th, 2008

I was researching things ‘nerd’ on the Web today, and I found myself at the CodeIgniter website.
For those of you who may not know, CodeIgniter is an MVC PHP framework.
What is an MVC framework?
I won’t go into details here since we’ve covered MVC basics elsewhere. Let me just say though, that an MVC framework [...]

Aprenda Programacion Orientada a Objetos en PHP

Monday, May 12th, 2008

Hi,
I’ve released my tutorial on Object Oriented PHP in Spanish.

You can download the PDF:
Aprenda Programacion Orientada a Objetos en PHP.pdf
Many thanks to Javier W. Barbieri from Iquitos Peru.
PS: I have new PHP tutorials coming out soon.
Stefan Mischook
www.killerphp.com

Setting up an MVC structure with the Zend Framework - part 1

Monday, March 24th, 2008

Hi,
I just released a new video on setting up an MVC structure with the Zend Framework. This video is a little more basic than the previous Zend videos … I had to twist Jon’s arm a little.

Anyway, let us know what you think and should you have any suggestions or request, please feel free to [...]

Object Oriented Video Tutorials for your Ipod

Friday, March 14th, 2008

Hi,
I just released my beginners object oriented php video tutorials in iPod format.

These videos target total beginners to object oriented programing. Though I talk about PHP, the principles are universal and so they apply to all OO (object oriented) languages including:

Java
Actionscript
C#
Ruby

.. and others. So if you are struggling to understand OOP concepts while trying to [...]

Zend Framework Components - Part 1

Friday, December 14th, 2007

By: Jonathan Lebensold
Why aren’t you teaching me how to make a blogging / shopping cart application?
Because the Pragmatic Programmers did a fantastic job when they wrote their famous Rails book “Agile Web Development with Rails.” Crowds ooo-ed and aaa-ed when the rails camp wrote tutorials that described “how to make a blog in ten [...]

A Question about object properties in PHP Classes.

Thursday, December 6th, 2007

I got this question put to me recently:
Since you say it’s bad practice to access object properties directly from outside the class, is it then good practice to declare all variables as protected or private to force yourself to not?
My answer:
Yes.
Many OO techniques are designed for situations where you will have more than one [...]

The Zend Framework: Writing Object-Oriented PHP with Ease.

Wednesday, November 21st, 2007

Introduction
In my attempt to turn you nerds into uber-nerds, I’ve been lucky enough to get the young and talented Jon Lebensold (my right hand nerd) to bang out a few articles (and soon videos) on some of the emerging PHP technologies and working practices that take PHP into the enterprise arena.
Enterprise arena = sophisticated [...]

Object Oriented PHP Tutorial in PDF

Tuesday, September 11th, 2007

Hi,
I’ve had several people request that the article on object oriented PHP be made into a PDF for offline viewing.

Well … here you go: oop php pdf

The PDF also contains links to the accompanying videos.
Thanks,
Stefan Mischook
www.killerphp.com
www.killersites.com

Building Objects in PHP - Part 3

Sunday, September 9th, 2007

Hi,
I’ve just released part 3 of my videos on objects in PHP.
In this video, I clarify a point I was trying to make in part 2. In a nutshell, I talk about why it makes sense to keep any page rendering code (HTML and CSS) out of your business logic classes.
.. I cover the details [...]

Building Objects in PHP - Part 2

Sunday, September 9th, 2007

Hi,
I’ve released part 2 of the video: Building Objects in PHP
In this video, we actually use the object we created in Part 1, in our PHP page.
-
I will have another video to clarify and wrap things up covered in Part 1 and Part 2.
Thanks,
Stefan Mischook

New Video: Building Objects in PHP

Friday, September 7th, 2007

Hi,
I just released part 1 of my video on building objects in PHP.
This is a hands-on video where I hope the viewer will actually write code along with me. I want to stress that this video (like everything else on this site,) targets beginners .. not old PHP hacks.
… My goal is to make object [...]

Why learn OOP in PHP - another take.

Friday, September 7th, 2007

Why learn OOP in PHP - another take.
For people new to OOP and are comfortable with ‘classic’ procedural php, you may be wondering why should you even bother to learn object oriented concepts … why go through the trouble?
The PHP world:
PHP is moving in an OOP direction. For example, many important PHP extensions like PEAR [...]

Object Oriented PHP Tutorial Updated

Sunday, August 26th, 2007

Hi,
I’ve update my beginners tutorial on object oriented PHP adding steps 12-17. I cover two new basic OO concepts in these steps:

Constructors.
Access modifiers.

Again, this is a code intensive article where I expect you to follow along with your PHP editors.
More to come.
Thanks,
Stefan Mischook
www.killerphp.com

Object Oriented PHP Tutorial Released

Wednesday, August 22nd, 2007

Hi,
I’ve just released a written tutorial on object oriented PHP, that targets people totally new to OO PHP.
Beginners Object Oriented PHP
Based on an article I wrote for a web design magazine; the tutorial is presented as a series of simple steps where I walk the reader through the process of building objects while at [...]

PHP Classes and Objects video tutorial

Friday, August 3rd, 2007

Hi,
I’ve released a new video that basically covers the content covered in the PDF: Classes and Objects.
-
… It is the last bit object oriented PHP theory before we jump in and start writing actual PHP code.
Video: PHP classes and objects
Thanks,
Stefan Mischook

Classes and Objects in PHP

Wednesday, August 1st, 2007

Hi,
I’ve written up a short (2 pages,) document that goes over some of the very basics of object oriented programming - it should take you all of 5 minutes to read.
I wrote this as the preamble to my next video on object oriented PHP where we will actually create living breathing PHP objects.
Here’s a [...]

Why Learn Object Oriented PHP - the PDF

Saturday, July 28th, 2007

I’ve just released a PDF that outlines the reasons for learning object oriented (OO) PHP.
PDF: why learn object oriented PHP
This document is meant to support my video on the same topic:
Video: why learn object oriented PHP.
Yes, this is basic stuff. But not everybody is a nerd-wizard.
-
I hope you guys find it useful.
Stefan Mischook
www.killerphp.com

Object Oriented PHP Videos are now out!

Friday, July 27th, 2007

Hi,
I’ve finally found the time to create a couple of videos on object oriented PHP!
The following videos are based on an article I wrote for Web Designer Magazine that taught OOP in PHP to total beginners.

OBJECT ORIENTED PHP VIDEOS
With the release of php5 (in 2004,) php programmers finally had the power to code [...]

OOP in PHP: New PHP article to appear in Web Designer Magazine November’s Issue

Tuesday, November 7th, 2006

I have a new article appearing in issue 125 of Web Designer Magazine - the November issue.
Article title:
Learn Object Oriented Programming (OOP) in PHP

Sample from the article:
With the release of php5, php programmers finally had the power to code with the ‘big boys’. Like Java and C#, php finally has a complete OOP infrastructure.
In [...]

PHP Interfaces: when and why you should use them instead of classes?

Saturday, August 26th, 2006

In this article/podcast, I look at what php interfaces are, and when and why we would use them over classes.
AUDIENCE:
To follow along, you must know the basics of object oriented php.
-
Download the MP3: PHP Interfaces Explained.
The following notes are meant to support the podcast … I left the details in the podcast.
First, what are interfaces?

Interfaces [...]