Welcome Guest, Not a member yet? Register   Sign In
What causes the “Twig_Environment not found” error?
#1

(This post was last modified: 11-20-2020, 08:54 AM by Ajax30.)

I am working on a online newspaper/blogging application with CodeIgniter 3.1.8 and Bootstrap 4. I have decided to add themes to it. The application is not HMVC, only MVC.

I thought it was a good idea to use the Twig template engine to the theme(s). For this purpose, I use CodeIgniter Simple and Secure Twig.


In the third_party directory I have added Twig (version 1.x) itself.

In application\config\autoload.php, I have loaded Twig:

PHP Code:
$autoload['libraries'] = array('database''form_validation''session''user_agent''twig'); 

The problem

In the browser, I get the error:


Code:
Message: Class 'Twig_Environment' not found.
Filename: path\to\root\application\libraries\Twig.php

What am I doing wrong?
Reply


Messages In This Thread
What causes the “Twig_Environment not found” error? - by Ajax30 - 11-19-2020, 06:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB