Welcome Guest, Not a member yet? Register   Sign In
Some curiosities about the template engine
#1

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?
Reply
#2

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
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB