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: 1 year ago
Size: 347 bytes


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

use eftec\bladeone\BladeOne;

$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"]);

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