PHP Classes

BladeOneHtml: Create HTML forms using compiled templates

Recommend this page to a friend!
  Info   View files Example   View files View files (24)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 89 All time: 9,880 This week: 196Up
Version License PHP version Categories
bladeonehtml 1.0GNU Lesser Genera...5HTML, PHP 5, Cache, Templates
Description 

Author

This package can be used to create HTML forms using compiled templates.

It provides a trait that can be used in any class to process a view file that is a PHP script with some form template marks.

The trait loads the PHP script and processes the template by compiling it into another PHP script.

The compiled form template script will output the form HTML to display the form in the user browser.

On a second time the form is outputted again, the trait will load the previously compile form template, thus avoiding to process the template file again.

The trait can take also an array with values that will be loaded in the form inputs, so it may show the form loaded with previously submitted input values.

Picture of Jorge Castro
  Performance   Level  
Name: Jorge Castro <contact>
Classes: 30 packages by
Country: Chile Chile
Age: 47
All time rank: 12893 in Chile Chile
Week rank: 30 Up1 in Chile Chile Up
Innovation award
Innovation award
Nominee: 14x

Winner: 2x

Example

<?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]);


  Files folder image Files  
File Role Description
Files folder imagedocs (14 files)
Files folder imageexamples (3 files, 1 directory)
Files folder imagelib (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Image file button.jpg Icon Icon image
  Accessible without login Image file checkbox.jpg Icon Icon image
  Accessible without login Image file file.jpg Icon Icon image
  Accessible without login Image file image.jpg Icon Icon image
  Accessible without login Image file img1.jpg Icon Icon image
  Accessible without login Image file input_label.jpg Icon Icon image
  Accessible without login Image file link.jpg Icon Icon image
  Accessible without login Image file ol.jpg Icon Icon image
  Accessible without login Image file optgroup.jpg Icon Icon image
  Accessible without login Image file radio.jpg Icon Icon image
  Accessible without login Image file select.jpg Icon Icon image
  Accessible without login Image file table.jpg Icon Icon image
  Accessible without login Image file textarea.jpg Icon Icon image
  Accessible without login Image file ul.jpg Icon Icon image

  Files folder image Files  /  examples  
File Role Description
Files folder imageviews (1 file, 1 directory)
  Accessible without login Plain text file example1.php Example Example script
  Accessible without login Plain text file testextension3.php Example Example script
  Accessible without login Plain text file testextension3_bs.php Example Example script

  Files folder image Files  /  examples  /  views  
File Role Description
Files folder imageTestExtension (2 files)
  Accessible without login Plain text file exampleview.blade.php Aux. Auxiliary script

  Files folder image Files  /  examples  /  views  /  TestExtension  
File Role Description
  Accessible without login Plain text file helloextensions3.blade.php Aux. Auxiliary script
  Accessible without login Plain text file helloextensions3_bs.blade.php Aux. Auxiliary script

  Files folder image Files  /  lib  
File Role Description
  Plain text file BladeOneHtml.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:89
This week:0
All time:9,880
This week:196Up