PHP code example of thenlabs / nate

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

    

thenlabs / nate example snippets


<!DOCTYPE html>
<html lang="<?= $this->lang 

 $this->extends('base.nate.php') 



use ThenLabs\Nate\Template;

$page = new Template(__DIR__.'/page.nate.php');

echo $page->render([
    'lang' => 'en',
    'title' => 'My Title',
]);
 $this->extends('base.nate.php') 
 $this->block('name') 
 $this->endblock() 
 if ($condition) : 
 foreach($array as $key => $value) :