PHP Classes

File: TemplatesPHP/SomeClass.tmpl.php

Recommend this page to a friend!
  Classes of Nic Latyshev   BlitzTemplateControl   TemplatesPHP/SomeClass.tmpl.php   Download  
File: TemplatesPHP/SomeClass.tmpl.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BlitzTemplateControl
Process templates using the Blitz PHP extension
Author: By
Last change:
Date: 6 years ago
Size: 377 bytes
 

Contents

Class file image Download
<?php
// Nowdoc Format

$templates['authors'] = <<<'EOD'
<h3>Authors</h3>
<table border="1">
    <thead>
        <tr><th>First Name</th><th>Last Name</th></tr>
    </thead>
    <tbody>
        {{ BEGIN authors }}
            {{ include("authors_row_entry.tpl") }}
        {{ END }}
    </tbody>
</table>
EOD;

$templates['authors_row_entry'] = <<<'EOD'
<tr><th>{{ $fname }}</th><th>{{ $lastname }}</th></tr>
EOD;

?>