Twig template for CI4 |
Hello.
I think that CodeIgniter 4 should have integrate TWIG TEMPLATE. I am using this integration for CI3 https://github.com/kenjis/codeigniter-ss-twig
This issue/suggestion has been extensively discussed already in this forum.
You want Twig, X insists that Smarty is the only way to go, Y swears by Blade, etc. There is no single templating engine that would satisfy everyone ![]() None of these will be part of CI4, but it will be easy for developers to integrate them.
James Parry
Project Lead (10-31-2016, 08:13 AM)jlp Wrote: This issue/suggestion has been extensively discussed already in this forum. Them you should create composer modules for easy integration ![]() Thanks for recipe. (11-15-2016, 11:10 AM)xprezesx Wrote: Them you should create composer modules for easy integration You know that such "you should", "you must" and etc are usually paid tasks. It's more than enough that they are making the framework Best VPS Hosting : Digital Ocean
(10-31-2016, 03:37 AM)xprezesx Wrote: Hello. Take a look at the Twig Library implementation at https://github.com/deathart/BlogCI4/blob...g/Twig.php. Maybe it will provide the help you're looking for in using Twig with CodeIgniter 4. (Using CodeIgniter since 1.x)
Also technically PHP is a templating language so there's no real need for Twig, Smarty etc
The Parser already includes many of the features of Twig. Additionally, basic template support (extending layouts, content sections, etc) were introduced to the framework last week. But, you could also create a thin wrapper around Twig and use it in place of the renderer service and incorporate it fairly easily.
(02-22-2019, 09:41 AM)gondwe Wrote: I have never liked templating engines.. They slow you down. I agree in many ways, though not always. I probably personally won't use the Parser much - but the ability to extend layouts and the like makes things so much simpler to organize, I feel.
template engines ends up to be another language/format/structure to learn that you just end up referencing again
*smarty is still alive... |
Welcome Guest, Not a member yet? Register Sign In |