PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Jakub Kuritka   PHP JUI templating system   index.php   Download  
File: index.php
Role: Application script
Content type: text/plain
Description: index file
Class: PHP JUI templating system
Build HTML user interfaces from JSON definitions
Author: By
Last change: Now we are using YAML instead of JSON, but JSON serializer still exists, so it can be used
Date: 11 years ago
Size: 167 bytes
 

Contents

Class file image Download
<?php
require_once "./JUI/Jui.php";

$parser = JUI\Resources::getParser();

$index = $parser->parse(file_get_contents("./View/index.yaml"));

echo
$index->render();
?>