PHP code example of tillklockmann / naona
1. Go to this page and download the library: Download tillklockmann/naona 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/ */
tillklockmann / naona example snippets
$view = new Naona\View;
$view = new Naona\View('path\to\folder');
$view->template('index')->render();
// Controller.php
$myTitle = 'Great Website';
$this->view->template('index')
->set('title', $myTitle)
->render();
// index.view.php
<h1><?= $title