PHP code example of acidjazz / larpug
1. Go to this page and download the library: Download acidjazz/larpug 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/ */
acidjazz / larpug example snippets
'providers' => [
...
Larpug\ServiceProvider::class,
],
$app->register(Larpug\ServiceProvider::class);
namespace App\Controllers;
class Pages extends Controller
{
public function index()
{
return view('pages.index', ['name' => 'kevin', 'title' => 'test title']);
}
}