Closed kgrzelak closed 3 years ago
I ported this library under CI4 for myself. There is nothing complicated about it. To work, just change a couple of lines in the file. Here is an example
To use, just plug in the library.
<?php namespace App\Controllers;
use App\Controllers\BaseController;
use App\Libraries\Twig;
class Main extends BaseController
{
public function index()
{
$data = [
'title' => 'MainPage',
];
$twig = new Twig();
$twig->display('main', $data);
}
}
This is very early development version: https://github.com/kenjis/codeigniter-ss-twig/tree/4.x Comments are welcome.
@kgrzelak @AsteriaGamer If you have any requests or issues, feel free to create a new issue or a PR.
Will there be CI-4 support?