PHP Classes

File: examples/testshare.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/testshare.php   Download  
File: examples/testshare.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/testshare.php
Date: 3 years ago
Size: 347 bytes
 

Contents

Class file image Download
<?php
/**
 * Copyright (c) 2019 Jorge Patricio Castro Castillo MIT License.
 */

use eftec\bladeone\BladeOne;

include
"../lib/BladeOne.php";
$blade=new BladeOne(null,null, BladeOne::MODE_DEBUG);

$blade->share('globalvar','IT IS GLOBAL');

/** examples/views/Test/test.blade.php */
echo $blade->run("Test.share", ["localvar" => "IT IS LOCAL"]);