PHP Classes

File: tutorial4.php

Recommend this page to a friend!
  Classes of Spank Mayer   hierarchytemplate   tutorial4.php   Download  
File: tutorial4.php
Role: Example script
Content type: text/plain
Description: with SubCycle
Class: hierarchytemplate
Template engine that can handle more than one file
Author: By
Last change:
Date: 20 years ago
Size: 1,841 bytes


Class file image Download
$tpls=new template;

$d_s=Array("Dream Mixes 3"=>Array("01. Prime Time",
"02. Astrophobia 'Red Supernova Remix'",
"03. Stereolight",
"04. Diamonds and Dust",
"05. Blue Spears",
"06. Meng Tian 'Smart Machine Remix'",
"07. Girl on the stairs 'Rien ne va plus 2001'",
"08. The spirit of the czar",
"09. The comfort zone "),
"Mota Atma"=>Array( "01. The Courage To Lose",
"02. For The Summit Only",
"03. No Pleasure No Pain",
"04. Royal Way Of Privacy",
"05. Phoenix Burning",
"06. Prophet In Chains",
"07. Snow On Angels Feather",
"08. A Fair Days Wage",
"09. Brain Offender",
"10. A Day In Liberty Valley"));

//DISKS is a cycle in a Main template
$with_DISKS=&$tpls->t["main"]->c["DISKS"];//typeing saveing
    //SONGS is a SubCycle in a DISKS
$with_SONGS=&$tpls->t["main"]->c["DISKS"]->c["SONGS"];//typeing saveing

$tpls->t["main"]->Values(Array("artist"=>"Tangerine Dream"));
$d_s as $disk=>$songs){
$songs as $song){