PHP Classes

File: test/tpl2.php

Recommend this page to a friend!
  Classes of Nikos M.   InTpl PHP Template Engine Inheritance   test/tpl2.php   Download  
File: test/tpl2.php
Role: Auxiliary data
Content type: text/plain
Description: Template script
Class: InTpl PHP Template Engine Inheritance
Render templates that inherit from other templates
Author: By
Last change: v.1.1.3

* default block text if empty
Date: 5 months ago
Size: 451 bytes
 

Contents

Class file image Download
<?php $this->extend("tpl1.php"); ?> <?php $this->start("b1"); ?>(2 1)<?php $this->super()->block("b1"); ?><?php $this->end("b1"); ?> <?php $this->start("b2"); ?>(2 2)<?php $this->super()->block("b2"); ?><?php $this->end("b2"); ?> <?php $this->start("b3"); ?>(2 3)<?php $this->super()->block("b3"); ?><?php $this->end("b3"); ?> <?php $this->start("b4"); ?>(2 4)<?php $this->super()->block("b4", true, " default text"); ?><?php $this->end("b4"); ?>