Working of the template class

Okay… fistly, the grammar above is wrong :P . Well, this post is going to deal with how the template class actually works. The template class actually works in the following method:

  1. First of all, we take up the file of the template into a variable called contents. This variable is the property of the database, and is accessible through $this->contents

Community News: Responses to the Death of PHP4

The community has responded to the fact that PHP4 is officially “dead” with a few posts to their blogs. Here’s the list so far:

Table of contents for Working with Doctrine

Henrik has posted the second part of his look at using Doctrine, this time in combining it with Smarty. (Check out part one here).

We are creating an MVC setup where M is Doctrine, V is Smarty and C is our own stuff we do here. The Zend Framework has been reduced to just another component library for me now, I will pick goodies when I need them.

Function: is_array()

This function checks whether the given variable is an array.

Description : bool is_array($arr);

Return value of this function will be in boolean ie. True or False .

If the given variable $arr is an array then the return value will be True.

Else the return value will be False.

Template Class – The initiation

Getting back to the template class we had started off the lat time, the template class has posed a challenge to me. So what I did was, start off with a very basic replacer. The trick is simple. Lets get on with some coding first.

class template

{