PHP Classes

File: examples/testincludeif.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/testincludeif.php   Download  
File: examples/testincludeif.php
Role: Example script
Content type: text/plain
Description: Example script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change: Update of examples/testincludeif.php
Date: 2 years ago
Size: 1,069 bytes


Class file image Download
 * Copyright (c) 2016 Jorge Patricio Castro Castillo MIT License.

use eftec\bladeone\BladeOne;


$views = __DIR__ . '/views';
$compiledFolder = __DIR__ . '/compiled';
$blade=new BladeOne($views,$compiledFolder,BladeOne::MODE_DEBUG);

//<editor-fold desc="Example data">
$name="New User";
$usr=new stdClass();
$usr->name="John Doe";
$usr=new stdClass();
$usr->name="Anna Smith";


try {
, ["some_var" => "some_var"]);
} catch (
Exception $e) {

echo $blade->run("Test.hello"
    ,["name"=>"hola mundo"