PHP Classes

File: examples/view/app/templates/differenttemplate.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/view/app/templates/differenttemplate.php   Download  
File: examples/view/app/templates/differenttemplate.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 466 bytes
 

Contents

Class file image Download
<?php
// partial for the header template
echo $this->partial('layout/header');
?>

<ul id="menu">
<?php
// partial loop with two parameters where the 1st is the name and the 2nd is an array of values to replace name each loop
echo $this->partialLoop('menu', 'menuitem', $this->menuitems);
?>
</ul>

<h3>This is a different template</h3>
<p><?php echo $this->get('content'); ?></p>


   
<?php
// partial for the footer template
echo $this->partial('layout/footer');
?>