1. Go to this page and download the library: Download jaxon-php/jaxon-latte 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/ */
class MyClass extends \Jaxon\App\FuncComponent
{
public function action()
{
$this->response->html('content-id', $this->view()->render('demo::/sub/dir/file'));
}
}
// /path/to/demo/views/sub/dir/file.latte
<!-- In page header -->
{jxnCss()}
</head>
<body>
<!-- Page content here -->
</body>
<!-- In page footer -->
{jxnJs()}
{jxnScript()}