PHP code example of wscore / template

1. Go to this page and download the library: Download wscore/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/ */

    

wscore / template example snippets


Layout: echo $_v->get( 'content' ); 

 $_v->parent( __DIR__ . '/layout.php' ); 

$content = $t->render( 'sample.php', array( 'test' => 'This is a sample.' ) );