CodeIgniter Forums

Full Version: Some curiosities about the template engine
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,
First of all, I apologize for my English. I used CI3 for a large hospital project using Smarty as a template engine and I was very happy with it. I would like to start a new project with version 4 and, unlike the previous version, it manages templates (one of the features for which I have chosen to use a template engine). I would like to know if any of you have done some tests to see if using the internal CI engine is better than or equal to the template engine or the performance of twig / smarty / etc .... is superior.

In case I want to use an external template engine in CI4, how can I use a single instance among all modules?
I don't know about the performance of the template engine. But for your last question, is you want to use a single instance of a class, you can define a service: http://codeigniter.com/user_guide/concep...vices.html