views:

522

answers:

3
A: 

If you wanted to use a method/property of the original class you can extend it but you must use a different name, otherwise you'll get an error about redeclaring the class.

Basically:

class template {}

/* both fail with "cannot redeclare class template */

class template extends template {}

class template {}
Ross
Oh alright. Thank you
Matt Lima
A: 

I am pretty sure you can not. I would suggest you do the following:

class Template extends TemplateBase
{
    // code
}

read more at: http://www.php.net/manual/en/language.oop5.php

farinspace
A: 

You might want to check out classkit

joebert