Posts: 9
Threads: 3
Joined: Feb 2020
Reputation:
0
During the installation of CI4 using Composer, i was happy to see that i could use Composer to install Twig by running " composer require kint-php/kint-twig". I did this and Twig got installed.
Is that enough? Will the CI4 autoload the Twig library?
Thank you in advance.
Posts: 1,404
Threads: 3
Joined: Aug 2017
Reputation:
39
Yes, it will find it like any other Composer packages you can install.
Posts: 671
Threads: 17
Joined: Oct 2014
Reputation:
37
No, it is not enough. There should be a bridge to CI4's API, but I don't know whether such thing has been developed yet. If you call Twig directly for example, you would not be able to use CI4's features like locating templates, caching, viewcells.
Posts: 9
Threads: 3
Joined: Feb 2020
Reputation:
0
06-07-2020, 03:02 PM
(This post was last modified: 06-07-2020, 03:03 PM by murugappan.)
I managed to install the Twig component using Composer without any problem. The problem is that Twig is not integrated. I could integrated Twig easily with CI3 but honestly dont know how to do it CI4. It is so sad that the documentation for CI4 does not cover the installation of its extensions.
Appreciate any help. Thank you.