PHP code example of lucinda / view-language

1. Go to this page and download the library: Download lucinda/view-language library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lucinda / view-language example snippets


$wrapper = new Lucinda\SQL\Wrapper(simplexml_load_file(XML_FILE_NAME));


$wrapper = new Lucinda\SQL\Wrapper(simplexml_load_file("configuration.xml"));

$html = $wrapper->compile(TEMPLATE_NAME, USER_DATA);

header("Content-Type: text/html; charset=UTF-8");
echo $html;

$data = [
	"author" => "Lucian Popescu", 
	"apis" => ["View Language API" => "https://www.lucinda-framework.com/view-language", "STDOUT MVC API" => "https://www.lucinda-framework.com/stdout-mvc"]
];


$wrapper = new Lucinda\SQL\Wrapper(simplexml_load_file("configuration.xml"));
$html = $wrapper->compile("index", $data);
html
<html>
    <head>
        <title>View Language API Tutorial</title>
    </head>
    <body>
        Hello,  echo $data["author"]; 
html
<:elseif test="...">
    ...
</:if>
html
<:set var="..." val="..."/>
html
<:unset var="..."/>