PHP code example of silassare / otpl
1. Go to this page and download the library: Download silassare/otpl 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/ */
silassare / otpl example snippets
new \OTpl\OTpl();
$otpl->parse('template.otpl');
$data = array(
'label' => array(
'text' => 'Your password please :',
),
'input' => array(
'id' => 'pass_field',
'type' => 'password',
'name' => 'pass'
)
);
$otpl->runWith($data);