PHP Classes
elePHPant
Icontem

View: Generate HTML for page views from variable values

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-09-25 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 142 This week: 2All time: 8,498 This week: 345Up
Version Licenses PHP version Categories
view 1.0Freely Distributable7HTML, Templates, Design Patterns, PHP 7
Description Author

This class can generate HTML for page views from variable values.

It takes the name of a HTML template file that will be used to define the core of a page that will be the current script output.

The class can replace some given variable values in the template and will use the result to replace a main layout HTML template file to generate the final output.

  Performance   Level  
Name: Ezhaym Najera M <contact>
Classes: 2 packages by
Country: Mexico Mexico
Age: ???
All time rank: 371744 in Mexico Mexico
Week rank: 177 Up1 in Mexico Mexico Up

Details

View

Generate Views from main Layout and HTML files with PHP

simple as:

$view = new View('contact.html', 'visitor_layout.html');

$view->render();

  Files folder image Files  
File Role Description
Files folder imageview (1 file, 3 directories)
Accessible without login Plain text file demo.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file View.php Class Class source

  Files folder image Files  /  view  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
Files folder imagelayout (1 file)
  Accessible without login Plain text file index.html Data Auxiliary data

  Files folder image Files  /  view  /  css  
File Role Description
  Accessible without login Plain text file styles.css Data Auxiliary data

  Files folder image Files  /  view  /  js  
File Role Description
  Accessible without login Plain text file functions.js Data Auxiliary data

  Files folder image Files  /  view  /  layout  
File Role Description
  Accessible without login Plain text file main.html Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:142
This week:2
All time:8,498
This week:345Up