Smarty with CI4 |
Ok, I got something working
Well I decided to go with Twig, but I think the same idea will work for Smarty. Source info: https://twig.symfony.com/doc/3.x/intro.h...-api-usage First install twig with composer. Code: composer require "twig/twig:^3.0" In BaseController.php PHP Code: namespace App\Controllers; Then in your controller PHP Code: namespace App\Controllers; Here, I created twigRender as an alternative to PHP Code: echo $this->twig->render('test.twig', ['name' => 'Noel']); but it's not required. |
Messages In This Thread |
Smarty with CI4 - by n2fole00 - 01-08-2024, 08:55 AM
RE: Smarty with CI4 - by n2fole00 - 02-11-2024, 07:06 AM
RE: Smarty with CI4 - by kenjis - 02-11-2024, 05:24 PM
|