PHP Classes

File: examples/example1.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  BladeOneHtml  >  examples/example1.php  >  Download  
File: examples/example1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: BladeOneHtml
Create HTML forms using compiled templates
Author: By
Last change:
Date: 1 year ago
Size: 520 bytes
 

Contents

Class file image Download
<?php
/**
 * Copyright (c) 2016 Jorge Patricio Castro Castillo MIT License.
 */
include "../vendor/autoload.php";

use
eftec\bladeone\BladeOne;
use
eftec\bladeonehtml\BladeOneHtml;

$views = __DIR__ . '/views';
$compiledFolder = __DIR__ . '/compiled';

class
myBlade extends BladeOne {
    use
BladeOneHtml;
}

$blade=new myBlade($views,$compiledFolder);
$blade->setMode(BladeOne::MODE_DEBUG); // for debug, remove in productive.

$myvalue=@$_REQUEST['myform'];

echo
$blade->run("exampleview", ['myvalue'=>$myvalue]);

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