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:
The problem
In the browser, I get the error:
What am I doing wrong?
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?