PHP code example of moay / php-perl-template
1. Go to this page and download the library: Download moay/php-perl-template 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/ */
moay / php-perl-template example snippets
$t =& new Template("bench3.tpl");
if ($output = $t->SaveCompiled(".")) {
echo ("$output saved");
}
$template =& LoadCompiledTemplate("mytemplate.tplc");
$template->AddParam("title", "Hellow world!");
$template->EchoOutput();