PHP5 Templates with Inheritance