PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of solomongaby   LiteTplEngine   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example file
Class: LiteTplEngine
Template engine based on PHP scripts
Author: By
Last change: small upgrade
Date: 14 years ago
Size: 727 bytes


Class file image Download

$page = new TplEngine();
$page->assign('page_title', 'Home');
$page->assign('main_content', '_home.php');

// to load css files

// to load local CSS

// to load JS files

// to load local JS

// to asign a variable
$page->assign('variableName', 'value');

// to append a variable
$page->assign('leftMenus', 'Menu Name 1');
$page->assign('leftMenus', 'Menu Name 2');
$page->assign('leftMenus', 'Menu Name 3');

require (