kenjis / codeigniter-ss-twig

A Simple and Secure Twig integration for CodeIgniter 3.x and 4.x
MIT License
168 stars 46 forks source link

Using with Twig 2.x #34

Closed yahyaerturan closed 3 years ago

yahyaerturan commented 7 years ago

In Readme, it says we can check out with Twig 2.x but when I do it, it gives me the following error:


Fatal error: Class 'Twig_Loader_Filesystem' not found in 
/.../Code/myproject/application/libraries/Twig.php on line 117

Do we need to something else for Twig 2.x. By the way I am using Composer to install Twig and other packages.

kenjis commented 7 years ago

You need autoloader. But if you install via Composer, you can use Composer's autoloader. Do you set up Composer autoloader for CodeIgniter? https://www.codeigniter.com/user_guide/general/autoloader.html

kenjis commented 3 years ago

If you have still the problem, feel free to reopen.