PHP Classes

File: plugin/test_plugin/index.php

Recommend this page to a friend!
  Classes of bassam alessawi   lezaz   plugin/test_plugin/index.php   Download  
File: plugin/test_plugin/index.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: lezaz
Template engine that compiles tags into PHP code
Author: By
Last change: add mailer class & filter for call function string & active lezaz code as printed
add bootstrap
Date: 7 years ago
Size: 396 bytes
 

Contents

Class file image Download
<?php
// this router for show str & number value in index.inc
$lezaz->router('/@str/@num/', function($str,$num) use ($lezaz){
   
$lezaz->set('str',$str);
   
$lezaz->set('num',$num);
});

// to include doc.inc template !
$lezaz->router('documentation', function() use ($lezaz) {
   
$lezaz->main_template='doc';
});

$lezaz->set('b',2);
$lezaz->set('sendmail',2);