PHP Classes

File: examples/simpleextend.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  BladeOne  >  examples/simpleextend.php  >  Download  
File: examples/simpleextend.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/simpleextend.php
Date: 2 months ago
Size: 561 bytes
 

Contents

Class file image Download
<?php
/**
 * Copyright (c) 2016 Jorge Patricio Castro Castillo MIT License.
 */
include "../lib/BladeOne.php";
use
eftec\bladeone\BladeOne;

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



//<editor-fold desc="Example data">
$v1=1;

try {
    echo
$blade->run("simpleextend.origin", ["content"=>"first"]);
} catch (
Exception $e) {
    echo
"error found ".$e->getMessage()."<br>".$e->getTraceAsString();
}

echo
$blade->run("simpleextend.origin2", ["content"=>"second"]);


For more information send a message to info at phpclasses dot org.