PHP Classes

File: template/pages/welcome.php

Recommend this page to a friend!
  Classes of Aleksandar Zivanovic   STPL   template/pages/welcome.php   Download  
File: template/pages/welcome.php
Role: Example script
Content type: text/plain
Description: Example script
Class: STPL
Render templates using PHP code scripts
Author: By
Last change:
Date: 5 years ago
Size: 317 bytes
 

Contents

Class file image Download
<?php STPL::SetBase(__DIR__ . '/../base.php'); ?>

<?php STPL::Partials([__DIR__ . '/../partials/top.php', __DIR__ . '/../partials/bottom.php']); ?>

<?php STPL::SectionContent('content', function ($user) { ?>
<div>Hello there, <b><?php echo "{$user['firstName']} {$user['lastName']}"; ?></div></b>
<?php }); ?>