What causes the “Twig_Environment not found” error? |
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. What am I doing wrong? |
Messages In This Thread |
What causes the “Twig_Environment not found” error? - by Ajax30 - 11-19-2020, 06:52 AM
RE: What causes the “Twig_Environment not found” error? - by InsiteFX - 11-19-2020, 05:05 PM
RE: What causes the “Twig_Environment not found” error? - by Ajax30 - 11-20-2020, 01:30 AM
RE: What causes the “Twig_Environment not found” error? - by superior - 11-21-2020, 02:13 PM
RE: What causes the “Twig_Environment not found” error? - by Ajax30 - 11-21-2020, 04:19 PM
RE: What causes the “Twig_Environment not found” error? - by InsiteFX - 11-21-2020, 09:11 PM
RE: What causes the “Twig_Environment not found” error? - by Ajax30 - 11-22-2020, 02:57 AM
RE: What causes the “Twig_Environment not found” error? - by superior - 11-23-2020, 03:11 AM
|