I have a problem with twig module for kohana3 (this one https://github.com/jheathco/kohana-twig ).
After uploading files to modules/twig, creating cache/twig
, views/twig
and enabling module in bootstrap.php
, i'm getting Internal Server Error 500
error (no matter which action/controller i'm displaying). In my apache log file i can find this error message:
PHP Fatal error: main(): Failed opening required '' (include_path='.:/usr/share/php:/usr/share/pear') in /home/bajki/workspace/biospot/modules/twig/init.php on line 4
Have anyone any idea what am i doing wrong? Thanks in advance.
It's probably because there are some files missing; you have to clone the submodule in vendor folder, so while inside of modules/twig, do:
git submodule update --init
Ok it was my fault - i didn't know that i need to download and install Twig class myself to vendor/Twig. Problem solved!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.